gds-plus-design-vue 1.2.63 → 1.2.72
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.e559c495.js +1 -0
- package/lib/{addPermission.9fc97a47.mjs → addPermission.f2eb7564.mjs} +127 -105
- package/lib/approvalModel.2b97fdf8.js +1 -0
- package/lib/{approvalModel.51d07afe.mjs → approvalModel.7b3cb5c5.mjs} +7 -7
- package/lib/attribute.4f814780.mjs +367 -0
- package/lib/attribute.7b4971f5.js +1 -0
- package/lib/businessRules.4f7349f3.js +1 -0
- package/lib/{businessRules.db6ba874.mjs → businessRules.7ca458f8.mjs} +191 -190
- package/lib/buttonRule.4aa9cfd8.mjs +396 -0
- package/lib/buttonRule.ba9528ab.js +1 -0
- package/lib/chartDisplayRules.25489412.js +1 -0
- package/lib/chartDisplayRules.63e53aa7.mjs +288 -0
- package/lib/components.chartbi.13a8a7b5.js +8 -0
- package/lib/components.chartbi.7356b244.mjs +1813 -0
- package/lib/{components.coloreditor.044983d2.mjs → components.coloreditor.20f8b336.mjs} +2 -2
- package/lib/{components.coloreditor.779a9419.js → components.coloreditor.8afc4731.js} +1 -1
- package/lib/{components.dataassign.1853ed5c.js → components.dataassign.59a87bfd.js} +1 -1
- package/lib/{components.dataassign.56632583.mjs → components.dataassign.e398cc99.mjs} +3 -3
- package/lib/{components.echarts.10d3ffe2.mjs → components.echarts.17e42353.mjs} +416 -399
- package/lib/components.echarts.5dea23f6.js +4 -0
- package/lib/{components.exception.cc2f4ca3.mjs → components.exception.8689aba2.mjs} +1 -1
- package/lib/{components.exception.3cc33e29.js → components.exception.b4ddeaba.js} +1 -1
- package/lib/{components.form.91d5ed3e.js → components.form.14ed3374.js} +19 -19
- package/lib/{components.form.3344c817.mjs → components.form.8047a9c3.mjs} +1118 -1090
- package/lib/{components.globalheader.07a90c4b.js → components.globalheader.5418b5ec.js} +1 -1
- package/lib/{components.globalheader.43fafa8c.mjs → components.globalheader.bc91e6fe.mjs} +3 -3
- package/lib/components.iconselector.4b5b7901.js +1 -0
- package/lib/{components.iconselector.8caabeaa.mjs → components.iconselector.d2d970ba.mjs} +7 -3
- package/lib/{components.imgpreview.57290b54.mjs → components.imgpreview.0563c338.mjs} +4 -4
- package/lib/{components.imgpreview.86bf7971.js → components.imgpreview.5fe318f7.js} +1 -1
- package/lib/{components.lunccalendar.f6765c94.mjs → components.lunccalendar.9a41ea40.mjs} +1 -1
- package/lib/{components.lunccalendar.76159d2e.js → components.lunccalendar.f18b2da3.js} +1 -1
- package/lib/{components.middleware.457b1182.mjs → components.middleware.24511f17.mjs} +5 -4
- package/lib/components.middleware.64b6a988.js +1 -0
- package/lib/{components.modaltitle.ae92f96c.mjs → components.modaltitle.4f454200.mjs} +1 -1
- package/lib/{components.modaltitle.e0b34fcb.js → components.modaltitle.d7ef34cb.js} +1 -1
- package/lib/{components.multitab.8441aa6b.mjs → components.multitab.15b91668.mjs} +1 -1
- package/lib/{components.multitab.82fd0544.js → components.multitab.92eb4b1e.js} +1 -1
- package/lib/{components.selecttree.85d940a9.mjs → components.selecttree.c615fe3e.mjs} +1 -1
- package/lib/{components.selecttree.d710a362.js → components.selecttree.ce4fbb44.js} +1 -1
- package/lib/{components.settingdrawer.779f6715.js → components.settingdrawer.4581f5b1.js} +1 -1
- package/lib/{components.settingdrawer.a6693034.mjs → components.settingdrawer.bdd68e73.mjs} +21 -21
- package/lib/{components.sidemenu.725677e3.mjs → components.sidemenu.c40eee2e.mjs} +2 -2
- package/lib/{components.sidemenu.80e46c2d.js → components.sidemenu.cd6d0301.js} +1 -1
- package/lib/components.sidenavmenu.1f0bbfca.js +1 -0
- package/lib/{components.sidenavmenu.23b8edce.mjs → components.sidenavmenu.47d7f44a.mjs} +448 -632
- package/lib/{components.statuschange.ed1218a4.js → components.statuschange.190f14ff.js} +1 -1
- package/lib/{components.statuschange.15938660.mjs → components.statuschange.85956695.mjs} +3 -3
- package/lib/{components.table.e3e5e3bc.mjs → components.table.389ab22a.mjs} +331 -316
- package/lib/{components.table.17c02054.js → components.table.d016f609.js} +3 -3
- package/lib/{components.tableumy.2f5dfa12.mjs → components.tableumy.750ec792.mjs} +7 -4
- package/lib/components.tableumy.aa73378d.js +1 -0
- package/lib/components.tablevirtual.879ff28f.js +1 -0
- package/lib/{components.tablevirtual.ba03746e.mjs → components.tablevirtual.9bf87b78.mjs} +7 -4
- package/lib/{components.teamsharing.fb4351ec.mjs → components.teamsharing.b9f112cf.mjs} +3 -3
- package/lib/{components.teamsharing.05503821.js → components.teamsharing.efe58448.js} +1 -1
- package/lib/{components.tooltip.950dc77b.mjs → components.tooltip.065f3dee.mjs} +1 -1
- package/lib/{components.tooltip.a05d8dd1.js → components.tooltip.edf8e4ca.js} +1 -1
- package/lib/{components.uploadfile.10f6cb2a.mjs → components.uploadfile.0439b870.mjs} +2 -2
- package/lib/{components.uploadfile.5a9b6cc1.js → components.uploadfile.586aca36.js} +1 -1
- package/lib/{components.uploadimg.cce7452a.js → components.uploadimg.2324089d.js} +1 -1
- package/lib/{components.uploadimg.f4fe4e77.mjs → components.uploadimg.5f2194ff.mjs} +2 -2
- package/lib/{components.verificationcode.d1946db4.js → components.verificationcode.863ff11e.js} +1 -1
- package/lib/{components.verificationcode.afb9aa1a.mjs → components.verificationcode.d8893ff6.mjs} +1 -1
- package/lib/{components.viewformdetails.f362d69e.mjs → components.viewformdetails.1236a66e.mjs} +94 -61
- package/lib/components.viewformdetails.328c8642.js +1 -0
- package/lib/{components.viewloading.ea40b244.mjs → components.viewloading.5761b277.mjs} +54 -51
- package/lib/components.viewloading.5b9c8fee.js +1 -0
- package/lib/{components.watermark.da3d7220.js → components.watermark.af8b5718.js} +1 -1
- package/lib/{components.watermark.1ffc66e0.mjs → components.watermark.d3638d63.mjs} +1 -1
- package/lib/{components.xlsxexport.f5ace2cd.js → components.xlsxexport.8c121797.js} +1 -1
- package/lib/{components.xlsxexport.d98572f8.mjs → components.xlsxexport.a1b7b087.mjs} +4 -4
- package/lib/components.xlsximport.c53c50f6.js +1 -0
- package/lib/{components.xlsximport.cffa88fe.mjs → components.xlsximport.d39bfeaa.mjs} +541 -532
- package/lib/copy.3b06d60f.mjs +572 -0
- package/lib/copy.fa2fcb22.js +1 -0
- package/lib/createFile.526dd6db.js +1 -0
- package/lib/createFile.c8d65b52.mjs +439 -0
- package/lib/createSubfolders.51df8fcd.js +1 -0
- package/lib/{createSubfolders.d35b97e9.mjs → createSubfolders.f8cad77f.mjs} +7 -7
- package/lib/{dialogLayout.c4bc3b55.mjs → dialogLayout.539feafb.mjs} +2 -2
- package/lib/{dialogLayout.08823bb7.js → dialogLayout.621a3d40.js} +1 -1
- package/lib/drawerContainer.790b0ee6.mjs +163 -0
- package/lib/drawerContainer.c971d22d.js +1 -0
- package/lib/{drawerLayout.36cf4d05.js → drawerLayout.accd44be.js} +1 -1
- package/lib/{drawerLayout.fb60950f.mjs → drawerLayout.c52b8374.mjs} +2 -2
- package/lib/editForm.83d10fae.mjs +434 -0
- package/lib/editForm.e284e5ec.js +1 -0
- package/lib/extendedAttributes.bfff1926.js +1 -0
- package/lib/extendedAttributes.e6b11c68.mjs +293 -0
- package/lib/{fileSearch.86c356fe.mjs → fileSearch.423b64a3.mjs} +140 -115
- package/lib/fileSearch.e849491c.js +1 -0
- package/lib/{flow.designer.6da03949.mjs → flow.designer.5feba43c.mjs} +3184 -3197
- package/lib/flow.designer.85d0054b.js +1 -0
- package/lib/{flow.list.03694808.mjs → flow.list.82131d80.mjs} +234 -232
- package/lib/flow.list.e001d91a.js +1 -0
- package/lib/form.build.19f0c882.js +1 -0
- package/lib/{form.build.b768d613.mjs → form.build.33cc213e.mjs} +22 -14
- package/lib/form.designer.build.2bcc355d.js +1 -0
- package/lib/form.designer.build.7dc12e87.mjs +2529 -0
- package/lib/formFiled.40284ed9.js +1 -0
- package/lib/{formFiled.fe7d9df3.mjs → formFiled.5a1c8f7f.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.07adebf0.js +8 -0
- package/lib/index.340d6f00.mjs +25906 -0
- package/lib/layoutBlocks.756e4b57.js +1 -0
- package/lib/layoutBlocks.816b49a7.mjs +413 -0
- package/lib/layoutItem.051495bc.mjs +71 -0
- package/lib/layoutItem.6f6017a5.js +1 -0
- package/lib/{layouts.051a0bba.mjs → layouts.1852e8e4.mjs} +19 -22
- package/lib/{layouts.a6a36612.js → layouts.2030bf01.js} +2 -2
- package/lib/main.0dc447c8.js +1 -0
- package/lib/main.12118407.mjs +552 -0
- package/lib/main.1551de4d.js +1 -0
- package/lib/main.1611bb43.js +1 -0
- package/lib/{main.70357352.mjs → main.26d3511c.mjs} +6 -6
- package/lib/{main.7f44e3bf.mjs → main.2f9312bb.mjs} +40 -50
- package/lib/main.316ac1b8.js +1 -0
- package/lib/main.48dc325f.mjs +231 -0
- package/lib/main.54ac9faa.mjs +189 -0
- package/lib/main.69a2b457.mjs +166 -0
- package/lib/{main.ad1e8d4d.js → main.6df74fe7.js} +1 -1
- package/lib/main.72c15ab0.js +1 -0
- package/lib/{main.8a2a590d.js → main.736883a9.js} +1 -1
- package/lib/main.9b2769b1.js +1 -0
- package/lib/main.b2314767.mjs +323 -0
- package/lib/{main.c1df94d8.mjs → main.ca46939e.mjs} +2 -2
- package/lib/main.e1cf9798.js +1 -0
- package/lib/{main.b0e5e1b0.mjs → main.efc8dc7b.mjs} +2 -2
- package/lib/main.fc38c7c8.mjs +537 -0
- package/lib/main.fcb67463.js +1 -0
- package/lib/{manage.a1df9b88.mjs → manage.1bc511ff.mjs} +162 -140
- package/lib/manage.eb0a6c8c.js +1 -0
- package/lib/messages.fieldconfiguration.092bb027.js +1 -0
- package/lib/messages.fieldconfiguration.7fd9ceb0.mjs +1097 -0
- package/lib/messages.messagetemplate.0935e5a3.mjs +1319 -0
- package/lib/messages.messagetemplate.50334e5f.js +7 -0
- package/lib/messages.sendplan.60929f46.js +1 -0
- package/lib/messages.sendplan.61edcc7f.mjs +1054 -0
- package/lib/messages.sendrecord.09a1d1cd.js +2 -0
- package/lib/messages.sendrecord.1c48aa6e.mjs +651 -0
- package/lib/messages.templatelibrary.f31e8d58.mjs +808 -0
- package/lib/messages.templatelibrary.f5952edd.js +2 -0
- package/lib/mobile.designer.componentstree.365945a3.js +1 -0
- package/lib/mobile.designer.componentstree.9439895e.mjs +2064 -0
- package/lib/mobile.designer.menutree.4d4e059b.js +1 -0
- package/lib/mobile.designer.menutree.7d3b783d.mjs +1036 -0
- package/lib/moveFile.3dc1dc37.mjs +276 -0
- package/lib/moveFile.f70bbff7.js +1 -0
- package/lib/{page.build.846096e6.js → page.build.7ac1ee9b.js} +3 -3
- package/lib/{page.build.685c1e15.mjs → page.build.ae61a39b.mjs} +607 -601
- package/lib/page.designer.componentstree.74a3a114.js +1 -0
- package/lib/page.designer.componentstree.cdabec2d.mjs +2958 -0
- package/lib/page.designer.fieldfiltering.e341aa60.mjs +430 -0
- package/lib/page.designer.fieldfiltering.f2d1b6e4.js +1 -0
- package/lib/page.designer.menutree.71c18258.js +1 -0
- package/lib/page.designer.menutree.e4ce1e90.mjs +5952 -0
- package/lib/page.designer.operation.1d435e6e.js +1 -0
- package/lib/page.designer.operation.fe808988.mjs +44 -0
- package/lib/page.designer.page.654634aa.js +1 -0
- package/lib/page.designer.page.821f8994.mjs +10638 -0
- package/lib/personal.echarts.118bcafb.mjs +268 -0
- package/lib/personal.echarts.e5915542.js +1 -0
- package/lib/result.4d4039ea.js +1 -0
- package/lib/result.a87217ae.mjs +639 -0
- package/lib/router.config.a09f29e7.js +1 -0
- package/lib/router.config.f0ad16fd.mjs +1424 -0
- package/lib/solution.application.8d6c84e8.js +1 -0
- package/lib/solution.application.e6b5dc4f.mjs +548 -0
- package/lib/solution.applicationmenu.c6cd2b59.js +1 -0
- package/lib/solution.applicationmenu.e878c41a.mjs +508 -0
- package/lib/solution.approvalflow.79da028c.js +1 -0
- package/lib/solution.approvalflow.eb1c0607.mjs +436 -0
- package/lib/solution.dict.088a1e72.mjs +769 -0
- package/lib/solution.dict.1d5195d0.js +1 -0
- package/lib/solution.menu.e58922fe.mjs +432 -0
- package/lib/solution.menu.fa48a7e8.js +1 -0
- package/lib/solution.plugin.5d6d29cf.js +1 -0
- package/lib/solution.plugin.ae6df926.mjs +347 -0
- package/lib/solution.processflow.62936f1c.mjs +392 -0
- package/lib/solution.processflow.aa1e808b.js +1 -0
- package/lib/solution.role.2eff83a1.js +1 -0
- package/lib/solution.role.7b3e7030.mjs +456 -0
- package/lib/solution.webresources.88c4483b.mjs +379 -0
- package/lib/solution.webresources.bc00603d.js +1 -0
- package/lib/solution.workflow.0ed2cb24.js +1 -0
- package/lib/solution.workflow.85de0ae5.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.3d7480ba.mjs} +877 -881
- package/lib/{system.account.0d4f1fdc.js → system.account.93ad722e.js} +7 -7
- package/lib/{system.config.0899edb8.mjs → system.config.6084ad21.mjs} +1 -1
- package/lib/{system.config.210f516c.js → system.config.9520e7f9.js} +1 -1
- package/lib/{system.datasource.82492d27.js → system.datasource.76c0ccdb.js} +1 -1
- package/lib/{system.datasource.986768c9.mjs → system.datasource.d74df021.mjs} +1 -1
- package/lib/system.dict.ab148847.js +1 -0
- package/lib/{system.dict.ef24873d.mjs → system.dict.caad4d66.mjs} +264 -260
- package/lib/system.document.0e46ff8c.js +1 -0
- package/lib/system.document.cbdf25a9.mjs +667 -0
- package/lib/{system.duplicatechecking.dcf9f86b.mjs → system.duplicatechecking.46e182d7.mjs} +245 -265
- package/lib/system.duplicatechecking.a217fc52.js +1 -0
- package/lib/system.email.1db14214.js +1 -0
- package/lib/{system.email.252fd642.mjs → system.email.c1ad6598.mjs} +10 -15
- package/lib/{system.fieldsecurity.0234d390.mjs → system.fieldsecurity.2e55e839.mjs} +370 -361
- package/lib/system.fieldsecurity.40b4f48a.js +1 -0
- package/lib/system.file.6a6bd77c.js +1 -0
- package/lib/{system.file.73eeb731.mjs → system.file.80aa0809.mjs} +81 -149
- package/lib/{system.log.b86cf57f.mjs → system.log.3986a8ca.mjs} +1 -1
- package/lib/{system.log.fc60f5e6.js → system.log.9d394678.js} +1 -1
- package/lib/{system.machine.0114001b.mjs → system.machine.395c67c2.mjs} +1 -1
- package/lib/{system.machine.f1d95c86.js → system.machine.d33b0b6e.js} +1 -1
- package/lib/system.notice.2090c130.js +1 -0
- package/lib/{system.notice.25ea8dca.mjs → system.notice.51880df6.mjs} +994 -992
- package/lib/system.noticereceived.0b79642e.js +1 -0
- package/lib/{system.noticereceived.369f634c.mjs → system.noticereceived.55f276ab.mjs} +10 -11
- package/lib/{system.onlineuser.2dc284b1.mjs → system.onlineuser.71034956.mjs} +37 -26
- package/lib/system.onlineuser.e74f010d.js +1 -0
- package/lib/{system.org.c20fe6b2.mjs → system.org.e1e156c6.mjs} +2 -2
- package/lib/{system.org.79ee5bd6.js → system.org.f6d58d0f.js} +1 -1
- package/lib/system.permissions.4090552f.mjs +972 -0
- package/lib/system.permissions.fdb64929.js +1 -0
- package/lib/{system.plugin.45a0f530.mjs → system.plugin.8a9a6448.mjs} +500 -479
- package/lib/system.plugin.a0f25733.js +1 -0
- package/lib/{system.pos.7946a99c.mjs → system.pos.0ad80a53.mjs} +1 -1
- package/lib/{system.pos.0a3d2a37.js → system.pos.71f3eba7.js} +1 -1
- package/lib/{system.promptmanagement.d7250932.mjs → system.promptmanagement.39607ddb.mjs} +246 -243
- package/lib/system.promptmanagement.9718aa24.js +1 -0
- package/lib/system.role.321c48d3.js +1 -0
- package/lib/{system.role.75da7929.mjs → system.role.3b533a3e.mjs} +511 -488
- package/lib/system.sumberrules.6e8d208e.js +1 -0
- package/lib/{system.sumberrules.4a1376a6.mjs → system.sumberrules.c2b8c5e7.mjs} +168 -165
- package/lib/{system.team.e6a9608e.mjs → system.team.367bf5e7.mjs} +163 -161
- package/lib/system.team.cf1c1558.js +1 -0
- package/lib/system.teammembers.63f21557.js +1 -0
- package/lib/{system.teammembers.4a7e7339.mjs → system.teammembers.851ce63b.mjs} +203 -198
- package/lib/system.timers.51bedf97.js +38 -0
- package/lib/{system.timers.eb0b6f3e.mjs → system.timers.5e735567.mjs} +2261 -2213
- package/lib/{system.translation.e34f0891.mjs → system.translation.61765713.mjs} +435 -429
- package/lib/system.translation.c9f1b505.js +1 -0
- package/lib/{system.user.fa2d2997.mjs → system.user.254bbe85.mjs} +1082 -1026
- package/lib/system.user.475d7391.js +14 -0
- package/lib/{system.useraffiliation.518e341e.mjs → system.useraffiliation.b96c984a.mjs} +418 -412
- package/lib/system.useraffiliation.fe1e1d39.js +1 -0
- package/lib/{system.webresource.469db736.mjs → system.webresource.2c6cf4a7.mjs} +179 -179
- package/lib/system.webresource.81cfa690.js +1 -0
- package/lib/{system.welcome.191e98f5.mjs → system.welcome.72da74ae.mjs} +1 -1
- package/lib/{system.welcome.f64e49f8.js → system.welcome.d86a3cdb.js} +1 -1
- package/lib/table.definition..btnconfig.24402bf0.mjs +938 -0
- package/lib/table.definition..btnconfig.add3d840.js +1 -0
- package/lib/table.definition..echartsconfig.4310b5a2.js +1 -0
- package/lib/table.definition..echartsconfig.9c3c88f6.mjs +2150 -0
- package/lib/tableDescriptions.143d8e67.js +1 -0
- package/lib/tableDescriptions.60a07f7c.mjs +80 -0
- package/lib/tcheckboxs.e4d387ff.js +1 -0
- package/lib/{tcheckboxs.090e75eb.mjs → tcheckboxs.ee4adb9e.mjs} +2 -2
- package/lib/tcurrency.0360c142.mjs +85 -0
- package/lib/tcurrency.233f4e63.js +1 -0
- package/lib/{tdatepicker.8fe48b1b.mjs → tdatepicker.9e5d99f4.mjs} +2 -2
- package/lib/{tdatepicker.b19e689d.js → tdatepicker.b10536fd.js} +1 -1
- package/lib/{tdictSwitch.2e07dc8a.js → tdictSwitch.10d64c18.js} +1 -1
- package/lib/{tdictSwitch.43d882c7.mjs → tdictSwitch.eed5a945.mjs} +2 -2
- package/lib/{tfile.72925615.mjs → tfile.7c635ee4.mjs} +2 -2
- package/lib/{tfile.1bc381f9.js → tfile.e183d25f.js} +1 -1
- package/lib/{tparticipants.ca5b556c.mjs → tparticipants.04280449.mjs} +2 -2
- package/lib/{tparticipants.77b876e2.js → tparticipants.f732d245.js} +1 -1
- package/lib/{translation.mains.278e4ba6.mjs → translation.mains.0df71304.mjs} +7 -7
- package/lib/{translation.mains.1ce7e110.js → translation.mains.6f941967.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.97590ce8.js +1 -0
- package/lib/versionControl.d1b2b0da.mjs +488 -0
- package/lib/versionEdit.c51606e4.mjs +452 -0
- package/lib/versionEdit.f710d0bb.js +1 -0
- package/lib/view.build.5789a6eb.js +1 -0
- package/lib/view.build.9976c958.mjs +1578 -0
- package/lib/{viewList.5a25c4b6.mjs → viewList.3ca52f0c.mjs} +70 -92
- package/lib/viewList.6e181715.js +1 -0
- package/lib/viewTree.9bdf96f0.js +1 -0
- package/lib/viewTree.c2e11b7f.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,4 +1,4 @@
|
|
|
1
|
-
"use strict";const H=require("./components.chartbi.e4680eaa.js"),q=require("vue"),R=require("./http.filemanage.7e6e3e1a.js"),W=require("./http.usermanage.6dcbc7de.js"),G=require("./http.languagemanage.e2c098ec.js"),V=require("./http.currencymanage.37ab5ced.js"),Z=require("./http.timezonemanage.e0aa212f.js"),N=require("./components.settingdrawer.779f6715.js"),K=require("./http.appmanage.b998818f.js"),B=require("./http.menumanage.6d740f2c.js"),J=require("./http.loginmanage.326984c3.js"),Q=s=>s&&typeof s=="object"&&"default"in s?s:{default:s},ee=Q(q);const te={props:{keepAlive:{type:Boolean,default:!0},height:{type:Number,default:0}},name:"GdAccountSettings",data(){return{mode:"inline",openKeys:[],selectedKeys:[],activeIndex:"/account/settings/base",preview:{},option:{img:"/avatar2.jpg",info:!0,size:1,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:180,autoCropHeight:180,fixedBox:!0,fixed:!0,fixedNumber:[1,1]},pageTitle:""}},components:{},computed:{fadeColord(){return this.fadeColor(this.primaryColor,.1)},style(){return this.crumbsState?"margin:0 4px 4px;height: 100%;":"margin: 4px;height: 100%;"},getHeight(){return"overflow:auto;height:"+(this.screenHeight-24-20-10-5)+"px;"},getTitle(){let s="",e=this.$route.meta.title;return e==="\u57FA\u672C\u8BBE\u7F6E"?s="basicSettings":e==="\u5B89\u5168\u8BBE\u7F6E"?s="securitySetting":e==="\u4E2A\u6027\u5316\u8BBE\u7F6E"?s="personalization":e==="\u65B0\u6D88\u606F\u901A\u77E5"?s="notify":e==="\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"&&(s="bindenterpriseWechat"),s===""?e:this.$i18nt("gd.account."+s)},...H.mapGetters(["userInfo","screenHeight","primaryColor","multiTab"])},mounted(){this.updateMenu()},methods:{onOpenChange(s,e){this.openKeys=openKeys},updateMenu(){const s=this.$route.matched.concat();this.activeIndex=s.pop().path},clickWx(s,e){const i=this.$route.matched.concat();this.activeIndex=i.pop().path},fadeColor(s,e){let i=parseInt(s.substring(1,3),16),a=parseInt(s.substring(3,5),16),u=parseInt(s.substring(5,7),16);return`rgba(${i},${a},${u},${e})`}},watch:{$route(s){this.updateMenu()}}};var ne=function(){var e=this,i=e._self._c;return i("div",{staticClass:"page-header-index-wide",style:e.style},[i("el-card",{style:e.getHeight,attrs:{bordered:!1,bodyStyle:{padding:"16px 0",height:e.getHeight+"px"}}},[i("div",{staticClass:"account-settings-info-main"},[i("div",{staticClass:"account-settings-info-left",style:{"--dilute":e.fadeColord}},[i("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{router:"","default-active":e.$route.path,mode:"vertical"},on:{select:e.clickWx}},[i("el-menu-item",{attrs:{index:"/account/settings/base"}},[e._v(e._s(e.$i18nt("gd.account.basicSettings")))]),i("el-menu-item",{attrs:{index:"/account/settings/security"}},[e._v(e._s(e.$i18nt("gd.account.securitySetting")))]),i("el-menu-item",{attrs:{index:"/account/settings/custom"}},[e._v(e._s(e.$i18nt("gd.account.personalization")))])],1)],1),i("div",{staticClass:"account-settings-info-right"},[i("div",{staticClass:"account-settings-info-title"},[i("span",[e._v(e._s(e.getTitle))])]),e.multiTab?i("keep-alive",[i("router-view",{key:e.$route.fullPath})],1):i("router-view",{key:e.$route.fullPath})],1)])])],1)},ie=[],re=H.normalizeComponent(te,ne,ie,!1,null,"0ab9cb32",null,null);const X=re.exports;X.install=function(s){s.component(X.name,X)};var U={exports:{}};(function(s,e){(function(i,a){s.exports=a()})(window,function(){return function(i){var a={};function u(d){if(a[d])return a[d].exports;var C=a[d]={i:d,l:!1,exports:{}};return i[d].call(C.exports,C,C.exports,u),C.l=!0,C.exports}return u.m=i,u.c=a,u.d=function(d,C,$){u.o(d,C)||Object.defineProperty(d,C,{enumerable:!0,get:$})},u.r=function(d){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},u.t=function(d,C){if(1&C&&(d=u(d)),8&C||4&C&&typeof d=="object"&&d&&d.__esModule)return d;var $=Object.create(null);if(u.r($),Object.defineProperty($,"default",{enumerable:!0,value:d}),2&C&&typeof d!="string")for(var I in d)u.d($,I,function(L){return d[L]}.bind(null,I));return $},u.n=function(d){var C=d&&d.__esModule?function(){return d.default}:function(){return d};return u.d(C,"a",C),C},u.o=function(d,C){return Object.prototype.hasOwnProperty.call(d,C)},u.p="",u(u.s=6)}([function(i,a,u){var d=u(2);typeof d=="string"&&(d=[[i.i,d,""]]);var C={hmr:!0,transform:void 0,insertInto:void 0};u(4)(d,C),d.locals&&(i.exports=d.locals)},function(i,a,u){var d=u(0);u.n(d).a},function(i,a,u){(i.exports=u(3)(!1)).push([i.i,`
|
|
1
|
+
"use strict";const H=require("./components.chartbi.13a8a7b5.js"),q=require("vue"),W=require("./http.usermanage.6dcbc7de.js"),z=require("./http.filemanage.7e6e3e1a.js"),G=require("./http.languagemanage.e2c098ec.js"),V=require("./http.currencymanage.37ab5ced.js"),Z=require("./http.timezonemanage.e0aa212f.js"),B=require("./components.settingdrawer.4581f5b1.js"),J=require("./http.appmanage.b998818f.js"),N=require("./http.menumanage.6d740f2c.js"),K=require("./http.loginmanage.326984c3.js"),Q=s=>s&&typeof s=="object"&&"default"in s?s:{default:s},ee=Q(q);const te={props:{keepAlive:{type:Boolean,default:!0},height:{type:Number,default:0}},name:"GdAccountSettings",data(){return{mode:"inline",openKeys:[],selectedKeys:[],activeIndex:"/account/settings/base",preview:{},option:{img:"/avatar2.jpg",info:!0,size:1,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:180,autoCropHeight:180,fixedBox:!0,fixed:!0,fixedNumber:[1,1]},pageTitle:""}},components:{},computed:{fadeColord(){return this.fadeColor(this.primaryColor,.1)},style(){return this.crumbsState?"margin:0 4px 4px;height: 100%;":"margin: 4px;height: 100%;"},getHeight(){return"overflow:auto;height:"+(this.screenHeight-24-20-10-5)+"px;"},getTitle(){let s="",e=this.$route.meta.title;return e==="\u57FA\u672C\u8BBE\u7F6E"?s="basicSettings":e==="\u5B89\u5168\u8BBE\u7F6E"?s="securitySetting":e==="\u4E2A\u6027\u5316\u8BBE\u7F6E"?s="personalization":e==="\u65B0\u6D88\u606F\u901A\u77E5"?s="notify":e==="\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"&&(s="bindenterpriseWechat"),s===""?e:this.$i18nt("gd.account."+s)},...H.mapGetters(["userInfo","screenHeight","primaryColor","multiTab"])},mounted(){this.updateMenu()},methods:{onOpenChange(s,e){this.openKeys=openKeys},updateMenu(){const s=this.$route.matched.concat();this.activeIndex=s.pop().path},clickWx(s,e){const i=this.$route.matched.concat();this.activeIndex=i.pop().path},fadeColor(s,e){let i=parseInt(s.substring(1,3),16),a=parseInt(s.substring(3,5),16),u=parseInt(s.substring(5,7),16);return`rgba(${i},${a},${u},${e})`}},watch:{$route(s){this.updateMenu()}}};var ne=function(){var e=this,i=e._self._c;return i("div",{staticClass:"page-header-index-wide",style:e.style},[i("el-card",{style:e.getHeight,attrs:{bordered:!1,bodyStyle:{padding:"16px 0",height:e.getHeight+"px"}}},[i("div",{staticClass:"account-settings-info-main"},[i("div",{staticClass:"account-settings-info-left",style:{"--dilute":e.fadeColord}},[i("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{router:"","default-active":e.$route.path,mode:"vertical"},on:{select:e.clickWx}},[i("el-menu-item",{attrs:{index:"/account/settings/base"}},[e._v(e._s(e.$i18nt("gd.account.basicSettings")))]),i("el-menu-item",{attrs:{index:"/account/settings/security"}},[e._v(e._s(e.$i18nt("gd.account.securitySetting")))]),i("el-menu-item",{attrs:{index:"/account/settings/custom"}},[e._v(e._s(e.$i18nt("gd.account.personalization")))])],1)],1),i("div",{staticClass:"account-settings-info-right"},[i("div",{staticClass:"account-settings-info-title"},[i("span",[e._v(e._s(e.getTitle))])]),e.multiTab?i("keep-alive",[i("router-view",{key:e.$route.fullPath})],1):i("router-view",{key:e.$route.fullPath})],1)])])],1)},ie=[],re=H.normalizeComponent(te,ne,ie,!1,null,"0ab9cb32",null,null);const P=re.exports;P.install=function(s){s.component(P.name,P)};const oe={props:{height:{type:Number,default:100}},name:"GdBaseSettings",components:{AvatarModal:()=>Promise.resolve().then(()=>ye)},data(){return{preview:{},sexData:[],langData:[],timezoneData:[],currencyData:[],option:{img:null,info:!0,size:1,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:180,autoCropHeight:180,fixedBox:!0,fixed:!0,fixedNumber:[1,1],birthdayString:""},spinning:!1,ruleForm:{},rules:{}}},computed:{getHeight(){return this.height},...H.mapGetters(["userInfo","locale","language"])},mounted(){this.initUserInfo()},methods:{changeLanguage(s){let e=this.langData.filter(i=>i.id==s)[0];this.$store.dispatch("Language",e.code)},initUserInfo(){this.spinning=!0,setTimeout(()=>{this.languageChange(),this.timezoneChange(),this.currencyChange(),this.ruleForm={birthday:this.userInfo.birthday?this.userInfo.birthday:void 0,nickName:this.userInfo.nickname,gender:this.userInfo.gender.toString(),email:this.userInfo.email,phone:this.userInfo.phone,tel:this.userInfo.tel,languageId:this.userInfo.languageid,currencyId:this.userInfo.currencyid,timezoneId:this.userInfo.timezoneid},this.birthdayString=this.userInfo.birthday,this.userInfo.avatar!=null?z.sysFileInfoPreview({id:this.userInfo.avatar}).then(s=>{this.option.img=window.URL.createObjectURL(new Blob([s]))}).catch(s=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+s.message)}):this.option.img="/avatar2.jpg",this.getSexData(),this.spinning=!1},100)},onChange(s,e){console.log(s),this.birthdayString=s},currencyChange(){V.sysCurrencyPage().then(s=>{s.success&&(this.currencyData=s.data.rows,ee.default.ls.set("currencyData",s.data.rows))})},timezoneChange(){Z.sysTimezonePage().then(s=>{s.success&&(this.timezoneData=s.data.rows)})},languageChange(){G.sysLanguagePage().then(s=>{s.success&&(this.langData=s.data.rows)})},submitUserInfo(){this.spinning||this.$refs.ruleForm.validate(s=>{s&&(this.spinning=!0,this.ruleForm.birthday=this.birthdayString,this.ruleForm.id=this.userInfo.id,W.sysUserUpdateInfo(this.ruleForm).then(e=>{if(e.success){let i=this.langData.filter(a=>a.id==this.ruleForm.languageId)[0];this.$store.dispatch("Language",i.code),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),setTimeout(()=>{this.$store.dispatch("GetInfo").then(()=>{})},500)}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message);this.spinning=!1}))})},getSexData(){this.sexData=this.$options.filters.dictData("gender")},setavatar(s){z.sysFileInfoPreview({id:s}).then(e=>{this.option.img=window.URL.createObjectURL(new Blob([e]))}).catch(e=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+e.message)}),this.$store.dispatch("GetInfo").then(()=>{})}}};var se=function(){var e=this,i=e._self._c;return i("div",{staticClass:"account-settings-info-view",staticStyle:{height:"100px"}},[i("el-row",{attrs:{gutter:16}},[i("el-col",{attrs:{md:24,lg:16}},[i("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:e.$i18nt("gd.account.nickname","\u6635\u79F0"),prop:"nickName"}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.nickName,callback:function(a){e.$set(e.ruleForm,"nickName",a)},expression:"ruleForm.nickName"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.birthday","\u751F\u65E5"),prop:"birthday",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.onChange},model:{value:e.ruleForm.birthday,callback:function(a){e.$set(e.ruleForm,"birthday",a)},expression:"ruleForm.birthday"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.sex","\u6027\u522B"),prop:"gender",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-radio-group",{model:{value:e.ruleForm.gender,callback:function(a){e.$set(e.ruleForm,"gender",a)},expression:"ruleForm.gender"}},e._l(e.sexData,function(a,u){return i("el-radio",{key:u,attrs:{label:a.code}},[e._v(" "+e._s(a.name)+" ")])}),1)],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.phone","\u624B\u673A\u53F7"),prop:"phone",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},{pattern:/^1[3-9]\d{9}$/,message:this.$i18nt("gd.account.phoneInvalid","\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),trigger:"blur"}]}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.phone,callback:function(a){e.$set(e.ruleForm,"phone",a)},expression:"ruleForm.phone"}})],1),i("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.account.tel","\u7535\u8BDD"),prop:"tel"}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.tel,callback:function(a){e.$set(e.ruleForm,"tel",a)},expression:"ruleForm.tel"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.email","\u7535\u5B50\u90AE\u4EF6"),prop:"email",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:"blur"},{type:"email",message:e.$i18nt("gd.account.emailTip","\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!"),trigger:["blur","change"]}]}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.email,callback:function(a){e.$set(e.ruleForm,"email",a)},expression:"ruleForm.email"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.language","\u9ED8\u8BA4\u8BED\u8A00"),prop:"languageId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{select:e.changeLanguage},model:{value:e.ruleForm.languageId,callback:function(a){e.$set(e.ruleForm,"languageId",a)},expression:"ruleForm.languageId"}},e._l(e.langData,function(a,u){return i("el-option",{key:u,attrs:{value:a.id,label:a.name}})}),1)],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.currency","\u9ED8\u8BA4\u8D27\u5E01"),prop:"currencyId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.currencyId,callback:function(a){e.$set(e.ruleForm,"currencyId",a)},expression:"ruleForm.currencyId"}},e._l(e.currencyData,function(a,u){return i("el-option",{key:u,attrs:{value:a.id,label:a.name}})}),1)],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.timeZone","\u9ED8\u8BA4\u65F6\u533A"),prop:"timezoneId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.timezoneId,callback:function(a){e.$set(e.ruleForm,"timezoneId",a)},expression:"ruleForm.timezoneId"}},e._l(e.timezoneData,function(a,u){return i("el-option",{key:u,attrs:{value:a.id,label:a.name}})}),1)],1),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.submitUserInfo}},[e._v(" "+e._s(e.$i18nt("gd.account.updateInformation","\u66F4\u65B0\u57FA\u672C\u4FE1\u606F"))+" ")])],1)],1)],1),i("el-col",{style:{minHeight:"180px"},attrs:{md:24,lg:8}},[i("div",{staticClass:"ant-upload-preview",on:{click:function(a){return e.$refs.modal.edit(e.userInfo.id)}}},[i("i",{staticClass:"el-icon-upload upload-icon"}),i("div",{staticClass:"mask"},[i("i",{staticClass:"el-icon-plus"})]),i("img",{attrs:{src:e.option.img}})])])],1),i("avatar-modal",{ref:"modal",on:{ok:e.setavatar}})],1)},ae=[],ce=H.normalizeComponent(oe,se,ae,!1,null,"981e4d97",null,null);const X=ce.exports;X.install=function(s){s.component(X.name,X)};const le={name:"GdCustomSettings",data(){return{colorList:B.colorList,options:[],homePage:["uvgsxjpu","ujhmcamph","uwcscihbx"],account:"",echartsList:[],value:0,primaryColors:this.primaryColor,propOptions:[],propOptionsOld:[],list:null,listOptions:[],listOptionsOld:[],presentText:[]}},computed:{predefine(){let s=[];return B.colorList.forEach(e=>{s.push(e.color)}),s},...H.mapGetters(["userInfo","addRouters","theme","primaryColor","echartsColor","systemInfo"])},watch:{primaryColor(){this.primaryColors=this.primaryColor}},methods:{okColor(s){this.$store.dispatch("EchartsColor",s),this.echartsList=[...s]},getColor(){this.echartsList=[...this.echartsColor]},renew(){let s=this,e=this.homePage,i=!1;if(e.length==0&&(i=!0),e.length>1&&(i=!0),!i){s.$message.error(s.$i18nt("gd.field.replenishData","\u8BF7\u8865\u5145\u6570\u636E"));return}this.$confirm(this.$i18nt("gd.https.configThemeContent","\u662F\u5426\u66F4\u65B0\u4E2A\u4EBA\u9996\u9875\u914D\u7F6E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u5B9A\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,u,d)=>{this.renewHand(a,u,d,this.homePage)}})},renewHand(s,e,i,a){if(s!=="confirm"){i();return}let u=[],d=W.sysUserConfigTheme({configTheme:a.join(",")}).then(C=>C);u.push(d),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(u).then(C=>{i(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const $=C.filter(S=>!S.success);$.length===0?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$store.dispatch("GetInfo").then(()=>{})):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+$[0].message)})},init(){this.value=this.theme=="dark"?1:0,this.homePage=this.userInfo.configtheme?this.userInfo.configtheme.split(","):[],this.systemInfo.id?this.systemInfo:window.$systemInfo},lazyLoad(s,e){const{level:i,value:a}=s;if(this.options.length===0){this.geData().then(()=>{if(this.presentText.length<this.homePage.length){const u=this.options.filter(d=>d.code===this.homePage[0])[0];this.presentText=u?this.presentText.concat([u.label]):this.presentText}e(this.options)});return}this.getMenuListAll(a).then(u=>{if(this.presentText.length<this.homePage.length&&i===2){this.presentText=this.presentText.concat([s.label]);const C=s.children.filter($=>$.value===this.homePage[i])[0];this.presentText=C?this.presentText.concat([C.label]):this.presentText}const d=this.$refs.cascader.presentText;this.presentText.length===this.homePage.length&&d===null&&(this.$refs.cascader.presentText=this.presentText.join(" / ")),e(u)})},geData(){return J.getAppList({}).then(s=>{if(s.success){let e=s.data.map(i=>{let a=this.userInfo.apps.filter(u=>u.code==i.code)[0];if(a!=null)return i.leaf=a==null,i.value=i.code,i.label=this.$i18nt(`Dynamics.${i.transkey}`,i.name),i.loading=!1,i});return e=e.filter(i=>i!==void 0),this.options=[...e],this.listOptionsOld=JSON.stringify(e),new Promise(i=>{i()})}})},getMenuListAll(s){return Promise.all([this.getMenuList({application:s}),this.sysMenuChange({application:s})]).then(e=>{let i=e[0].data,a=e[1].data;return i.map((u,d)=>{let C=a.filter($=>$.path==u.router);return i[d].value=u.router,i[d].label=this.$i18nt(`Dynamics.${u.transkey}`,u.name),i[d].leaf=u.children.length==0,i[d].disabled=C.length==0,u.children.length==0?i[d].children=null:u.children.map(($,S)=>{let L=a.filter(k=>k.path==$.router);i[d].children[S].value=$.router,i[d].children[S].label=this.$i18nt(`Dynamics.${$.transkey}`,$.name),i[d].children[S].children=[],i[d].children[S].leaf=!0,i[d].children[S].disabled=L.length==0}),u}),i.map(u=>{u.children=u.children?u.children.filter(d=>d.disabled==!1):[]}),i})},getMenuList(s){return N.getMenuList(s).then(e=>e)},sysMenuChange(s){return N.sysMenuChange(s).then(e=>e)},onChangeCascader(s){const e=this.$refs.cascader.presentText;this.presentText=e!==null?e.split(" / "):[]},onChange(s){s?this.$store.dispatch("ToggleTheme","dark"):this.$store.dispatch("ToggleTheme","light")},async changeColor(s){const e=this,i=this.primaryColor;if(typeof s!="string")return;const a=this.$message({message:e.$i18nt("gd.theme.switchingTopics"),duration:0,iconClass:"el-icon-loading"}),u=this.getThemeCluster(s.replace("#","")),d=this.getThemeCluster(i.replace("#","")),C=(L,k)=>()=>{const T=this.getThemeCluster(this.primaryColor.replace("#","")),n=this.updateStyle(this[L],T,u);let t=document.getElementById(k);t||(t=document.createElement("style"),t.setAttribute("id",k),document.head.appendChild(t)),t.innerText=n};this.chalk||await Promise.resolve().then(()=>require("./element-theme-chalk.dee12271.js")).then(L=>{this.chalk=L.default}),C("chalk","chalk-style")(),[].slice.call(document.querySelectorAll("style")).filter(L=>{const k=L.innerText;return new RegExp(i,"i").test(k)&&!/Chalk Variables/.test(k)}).forEach(L=>{const{innerText:k}=L;typeof k=="string"&&(L.innerText=this.updateStyle(k,d,u))}),this.$store.dispatch("ToggleColor",s),window.document.body.style=`--color:${s}`,this.$nextTick(()=>{setTimeout(()=>{a.close()},200)})},updateStyle(s,e,i){let a=s;return e.forEach((u,d)=>{a=a.replace(new RegExp(u,"ig"),i[d])}),a},getThemeCluster(s){const e=(u,d)=>{let C=parseInt(u.slice(0,2),16),$=parseInt(u.slice(2,4),16),S=parseInt(u.slice(4,6),16);return d===0?[C,$,S].join(","):(C+=Math.round(d*(255-C)),$+=Math.round(d*(255-$)),S+=Math.round(d*(255-S)),C=C.toString(16),$=$.toString(16),S=S.toString(16),`#${C}${$}${S}`)},i=(u,d)=>{let C=parseInt(u.slice(0,2),16),$=parseInt(u.slice(2,4),16),S=parseInt(u.slice(4,6),16);return C=Math.round((1-d)*C),$=Math.round((1-d)*$),S=Math.round((1-d)*S),C=C.toString(16),$=$.toString(16),S=S.toString(16),`#${C}${$}${S}`},a=[s];for(let u=0;u<=9;u++)a.push(e(s,Number((u/10).toFixed(2))));return a.push(i(s,.1)),a},traverse(s,e){let i=null;const a=u=>(u=u.filter((d,C)=>(d.children&&d.children.length>0&&a(d.children),d.value==s&&(i={...d}),!0)),u);return a(this.propOptions),i}},mounted(){this.getColor(),this.init(),this.primaryColor&&(this.primaryColors=this.primaryColor)}};var he=function(){var e=this,i=e._self._c;return i("div",{staticStyle:{"padding-top":"12px"}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.overallStyle","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.overallStyleTip","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("el-switch",{attrs:{"active-text":e.$i18nt("gd.settings.darkness","\u767D\u8272"),"active-color":e.primaryColor,"inactive-text":e.$i18nt("gd.settings.white","\u6697\u8272"),"active-value":1,"inactive-value":0},on:{change:e.onChange},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}})],1)])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.theme","\u4E3B\u9898\u8272")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.themeTip","\u9875\u9762\u4E3B\u9898\u914D\u8272"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("el-color-picker",{ref:"colorPicker",staticClass:"theme-picker",attrs:{size:"small",predefine:e.predefine,"popper-class":"theme-picker-dropdown"},on:{change:e.changeColor},model:{value:e.primaryColors,callback:function(a){e.primaryColors=a},expression:"primaryColors"}})],1)])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.echartsColor","\u56FE\u8868\u8272")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.echartsColorStyle","\u56FE\u8868\u98CE\u683C\u914D\u8272"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-flex"},[e._l(e.echartsList,function(a,u){return[i("el-tooltip",{staticClass:"setting-drawer-theme-color-colorBlock",attrs:{content:a===0?e.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"):a}},[i("el-tag",{attrs:{color:a===0?e.primaryColor:a}})],1)]}),i("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:function(a){return e.$refs.echartsTheme.open()}}},[e._v(" "+e._s(e.$i18nt("gd.btn.edit","\u7F16\u8F91"))+" ")])],2)])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.homepage","\u4E2A\u4EBA\u9996\u9875")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.homepageTip","\u914D\u7F6E\u540E\u7528\u6237\u767B\u5F55\u76F4\u63A5\u8FDB\u5165\u4E2A\u4EBA\u9996\u9875"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-flex"},[i("el-cascader",{ref:"cascader",staticStyle:{width:"240px"},attrs:{clearable:"",props:{lazy:!0,lazyLoad:e.lazyLoad}},on:{change:e.onChangeCascader},model:{value:e.homePage,callback:function(a){e.homePage=a},expression:"homePage"}}),i("span",{staticClass:"active-color",staticStyle:{"margin-left":"10px",cursor:"pointer"},on:{click:e.renew}},[e._v(" "+e._s(e.$i18nt("gd.btn.update","\u66F4\u65B0"))+" ")])],1)])],1),i("el-divider"),i("gd-color-editor",{ref:"echartsTheme",on:{ok:e.okColor}})],1)},ue=[],de=H.normalizeComponent(le,he,ue,!1,null,"b784faab",null,null);const F=de.exports;F.install=function(s){s.component(F.name,F)};const pe={name:"GdSecuritySettings",components:{UpdPwd:()=>Promise.resolve().then(()=>ke),weChatBind:()=>Promise.resolve().then(()=>He)},data(){return{isShow:!1,num:0,wxUserId:null,obj:{},appId:"",agentId:"",redirectURL:"",enterpriseNum:0,bindTitle:"\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1",dicsTitle:""}},watch:{language(s,e){this.changeLanguage()},userInfo(s,e){this.changUserInfo()}},mounted(){this.init()},computed:{...H.mapGetters(["userInfo","language"])},methods:{updPwd(){this.$refs.updPwd.open(this.userInfo.account,null,1)},bind(){this.$refs.weChatBind.open(this.obj,1)},getConfigInfo(){let s={code:"GDS_ENTERPRISE_WECHAT_LOGIN"};W.getConfigInfoByCode(s).then(e=>{this.enterpriseNum=e.data.value})},getConfigsBy(){let s={strCodes:"GDS_ENTERPRISE_WECHAT_CropID,GDS_ENTERPRISE_WECHAT_AgentId,GDS_ENTERPRISE_WECHAT_Redirect_URL"};W.getConfigsByCode(s).then(e=>{e.success&&(this.obj=e)})},getData(){K.getLoginUser().then(s=>{this.wxuserid=s.data.wxuserid})},changeLanguage(){this.init()},changUserInfo(){this.init()},init(){this.wxuserid=this.userInfo.wxuserid,this.getConfigInfo(),this.getData(),this.getConfigsBy()},getWeChat(s,e){let i=this;s.data.forEach((a,u)=>{a.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(i.appId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(i.agentId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(i.redirectURL=a.value)}),setTimeout(()=>{i.wwLogin=ww.createWWLoginPanel({el:"#wx_qrcode",params:{login_type:"CorpApp",appid:i.appId,agentid:i.agentId,redirect_uri:i.redirectURL,state:"loginState",redirect_type:"callback",panel_size:"middle",lang:e=="zh_CN"?"zh":"en"},onCheckWeComLogin({isWeComLogin:a}){console.log(a)},onLoginSuccess({code:a}){i.code=a,i.$refs.updPwd.open(i.userInfo.account,a,2),console.log(a)},onLoginFail(a){}})},500)},bindCode(s){s==1||s==0?this.getData():s==-1?this.getConfigsBy():s==2&&this.getConfigsBy()}}};var ge=function(){var e=this,i=e._self._c;return i("div",{staticStyle:{"padding-top":"12px"}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"grid-content bg-purple"},[e._v(" "+e._s(e.$i18nt("gd.account.passWord","\u8D26\u6237\u5BC6\u7801"))+" ")])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.strength","\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6"))+":"+e._s(e.$i18nt("gd.account.strong","\u5F3A"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.updPwd}},[e._v(" "+e._s(e.$i18nt("gd.account.changePaw","\u4FEE\u6539\u5BC6\u7801"))+" ")])])])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"grid-content bd",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.bindenterpriseWechat","\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"))+" ")])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content state"},[e._v(" "+e._s(e.$i18nt("gd.account.currentState","\u5F53\u524D\u72B6\u6001"))+":"+e._s(e.wxUserId==null||e.wxUserId==""?e.$i18nt("gd.state.no","\u5426"):e.$i18nt("gd.state.yes","\u662F"))+" ")])]),e.wxUserId==null||e.wxUserId==""?i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.bind}},[e._v(e._s(e.$i18nt("gd.account.bind","\u7ED1\u5B9A")))])])]):e._e()],1),i("upd-pwd",{ref:"updPwd",attrs:{isShow:e.isShow},on:{bindCode:e.bindCode}}),i("weChatBind",{ref:"weChatBind",on:{bindCode:e.bindCode}})],1)},fe=[],me=H.normalizeComponent(pe,ge,fe,!1,null,"21459f3a",null,null);const Y=me.exports;Y.install=function(s){s.component(Y.name,Y)};var U={exports:{}};(function(s,e){(function(i,a){s.exports=a()})(window,function(){return function(i){var a={};function u(d){if(a[d])return a[d].exports;var C=a[d]={i:d,l:!1,exports:{}};return i[d].call(C.exports,C,C.exports,u),C.l=!0,C.exports}return u.m=i,u.c=a,u.d=function(d,C,$){u.o(d,C)||Object.defineProperty(d,C,{enumerable:!0,get:$})},u.r=function(d){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},u.t=function(d,C){if(1&C&&(d=u(d)),8&C||4&C&&typeof d=="object"&&d&&d.__esModule)return d;var $=Object.create(null);if(u.r($),Object.defineProperty($,"default",{enumerable:!0,value:d}),2&C&&typeof d!="string")for(var S in d)u.d($,S,function(L){return d[L]}.bind(null,S));return $},u.n=function(d){var C=d&&d.__esModule?function(){return d.default}:function(){return d};return u.d(C,"a",C),C},u.o=function(d,C){return Object.prototype.hasOwnProperty.call(d,C)},u.p="",u(u.s=6)}([function(i,a,u){var d=u(2);typeof d=="string"&&(d=[[i.i,d,""]]);var C={hmr:!0,transform:void 0,insertInto:void 0};u(4)(d,C),d.locals&&(i.exports=d.locals)},function(i,a,u){var d=u(0);u.n(d).a},function(i,a,u){(i.exports=u(3)(!1)).push([i.i,`
|
|
2
2
|
.vue-cropper[data-v-6dae58fd] {
|
|
3
3
|
position: relative;
|
|
4
4
|
width: 100%;
|
|
@@ -198,19 +198,19 @@
|
|
|
198
198
|
right: -10px;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
`,""])},function(i,a){i.exports=function(u){var d=[];return d.toString=function(){return this.map(function(C){var $=function(
|
|
201
|
+
`,""])},function(i,a){i.exports=function(u){var d=[];return d.toString=function(){return this.map(function(C){var $=function(S,L){var k=S[1]||"",T=S[3];if(!T)return k;if(L&&typeof btoa=="function"){var n=function(o){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"}(T),t=T.sources.map(function(o){return"/*# sourceURL="+T.sourceRoot+o+" */"});return[k].concat(t).concat([n]).join(`
|
|
202
202
|
`)}return[k].join(`
|
|
203
|
-
`)}(C,u);return C[2]?"@media "+C[2]+"{"+$+"}":$}).join("")},d.i=function(C,$){typeof C=="string"&&(C=[[null,C,""]]);for(var
|
|
203
|
+
`)}(C,u);return C[2]?"@media "+C[2]+"{"+$+"}":$}).join("")},d.i=function(C,$){typeof C=="string"&&(C=[[null,C,""]]);for(var S={},L=0;L<this.length;L++){var k=this[L][0];typeof k=="number"&&(S[k]=!0)}for(L=0;L<C.length;L++){var T=C[L];typeof T[0]=="number"&&S[T[0]]||($&&!T[2]?T[2]=$:$&&(T[2]="("+T[2]+") and ("+$+")"),d.push(T))}},d}},function(i,a,u){var d={},C=function(c){var h;return function(){return h===void 0&&(h=c.apply(this,arguments)),h}}(function(){return window&&document&&document.all&&!window.atob}),$=function(c){var h={};return function(p,g){if(typeof p=="function")return p();if(h[p]===void 0){var w=function(v,b){return b?b.querySelector(v):document.querySelector(v)}.call(this,p,g);if(window.HTMLIFrameElement&&w instanceof window.HTMLIFrameElement)try{w=w.contentDocument.head}catch{w=null}h[p]=w}return h[p]}}(),S=null,L=0,k=[],T=u(5);function n(c,h){for(var p=0;p<c.length;p++){var g=c[p],w=d[g.id];if(w){w.refs++;for(var v=0;v<w.parts.length;v++)w.parts[v](g.parts[v]);for(;v<g.parts.length;v++)w.parts.push(m(g.parts[v],h))}else{var b=[];for(v=0;v<g.parts.length;v++)b.push(m(g.parts[v],h));d[g.id]={id:g.id,refs:1,parts:b}}}}function t(c,h){for(var p=[],g={},w=0;w<c.length;w++){var v=c[w],b=h.base?v[0]+h.base:v[0],_={css:v[1],media:v[2],sourceMap:v[3]};g[b]?g[b].parts.push(_):p.push(g[b]={id:b,parts:[_]})}return p}function o(c,h){var p=$(c.insertInto);if(!p)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var g=k[k.length-1];if(c.insertAt==="top")g?g.nextSibling?p.insertBefore(h,g.nextSibling):p.appendChild(h):p.insertBefore(h,p.firstChild),k.push(h);else if(c.insertAt==="bottom")p.appendChild(h);else{if(typeof c.insertAt!="object"||!c.insertAt.before)throw new Error(`[Style Loader]
|
|
204
204
|
|
|
205
205
|
Invalid value for parameter 'insertAt' ('options.insertAt') found.
|
|
206
206
|
Must be 'top', 'bottom', or Object.
|
|
207
207
|
(https://github.com/webpack-contrib/style-loader#insertat)
|
|
208
|
-
`);var w=$(c.insertAt.before,p);p.insertBefore(h,w)}}function r(c){if(c.parentNode===null)return!1;c.parentNode.removeChild(c);var h=k.indexOf(c);h>=0&&k.splice(h,1)}function l(c){var h=document.createElement("style");if(c.attrs.type===void 0&&(c.attrs.type="text/css"),c.attrs.nonce===void 0){var p=function(){return u.nc}();p&&(c.attrs.nonce=p)}return f(h,c.attrs),o(c,h),h}function f(c,h){Object.keys(h).forEach(function(p){c.setAttribute(p,h[p])})}function m(c,h){var p,g,w,v;if(h.transform&&c.css){if(!(v=typeof h.transform=="function"?h.transform(c.css):h.transform.default(c.css)))return function(){};c.css=v}if(h.singleton){var b=L++;p=
|
|
209
|
-
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(O))))+" */");var j=new Blob([A],{type:"text/css"}),
|
|
210
|
-
`)}}();function x(c,h,p,g){var w=p?"":g.css;if(c.styleSheet)c.styleSheet.cssText=y(h,w);else{var v=document.createTextNode(w),b=c.childNodes;b[h]&&c.removeChild(b[h]),b.length?c.insertBefore(v,b[h]):c.appendChild(v)}}},function(i,a){i.exports=function(u){var d=typeof window<"u"&&window.location;if(!d)throw new Error("fixUrls requires window.location");if(!u||typeof u!="string")return u;var C=d.protocol+"//"+d.host,$=C+d.pathname.replace(/\/[^\/]*$/,"/");return u.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(I,L){var k,T=L.trim().replace(/^"(.*)"$/,function(n,t){return t}).replace(/^'(.*)'$/,function(n,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(T)?I:(k=T.indexOf("//")===0?T:T.indexOf("/")===0?C+T:$+T.replace(/^\.\//,""),"url("+JSON.stringify(k)+")")})}},function(i,a,u){u.r(a);var d=function(){var n=this,t=n.$createElement,o=n._self._c||t;return o("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:n.scaleImg,mouseout:n.cancelScale}},[n.imgs?o("div",{staticClass:"cropper-box"},[o("div",{directives:[{name:"show",rawName:"v-show",value:!n.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:n.trueWidth+"px",height:n.trueHeight+"px",transform:"scale("+n.scale+","+n.scale+") translate3d("+n.x/n.scale+"px,"+n.y/n.scale+"px,0)rotateZ("+90*n.rotate+"deg)"}},[o("img",{ref:"cropperImg",attrs:{src:n.imgs,alt:"cropper-img"}})])]):n._e(),n._v(" "),o("div",{staticClass:"cropper-drag-box",class:{"cropper-move":n.move&&!n.crop,"cropper-crop":n.crop,"cropper-modal":n.cropping},on:{mousedown:n.startMove,touchstart:n.startMove}}),n._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:n.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:n.cropW+"px",height:n.cropH+"px",transform:"translate3d("+n.cropOffsertX+"px,"+n.cropOffsertY+"px,0)"}},[o("span",{staticClass:"cropper-view-box"},[o("img",{style:{width:n.trueWidth+"px",height:n.trueHeight+"px",transform:"scale("+n.scale+","+n.scale+") translate3d("+(n.x-n.cropOffsertX)/n.scale+"px,"+(n.y-n.cropOffsertY)/n.scale+"px,0)rotateZ("+90*n.rotate+"deg)"},attrs:{src:n.imgs,alt:"cropper-img"}})]),n._v(" "),o("span",{staticClass:"cropper-face cropper-move",on:{mousedown:n.cropMove,touchstart:n.cropMove}}),n._v(" "),n.info?o("span",{staticClass:"crop-info",style:{top:n.cropInfo.top}},[n._v(n._s(this.cropInfo.width)+" \xD7 "+n._s(this.cropInfo.height))]):n._e(),n._v(" "),n.fixedBox?n._e():o("span",[o("span",{staticClass:"crop-line line-w",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,1)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,1)}}}),n._v(" "),o("span",{staticClass:"crop-line line-a",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,1,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,1,0)}}}),n._v(" "),o("span",{staticClass:"crop-line line-s",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,2)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,2)}}}),n._v(" "),o("span",{staticClass:"crop-line line-d",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,2,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,2,0)}}}),n._v(" "),o("span",{staticClass:"crop-point point1",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,1,1)},touchstart:function(r){n.changeCropSize(r,!0,!0,1,1)}}}),n._v(" "),o("span",{staticClass:"crop-point point2",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,1)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,1)}}}),n._v(" "),o("span",{staticClass:"crop-point point3",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,2,1)},touchstart:function(r){n.changeCropSize(r,!0,!0,2,1)}}}),n._v(" "),o("span",{staticClass:"crop-point point4",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,1,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,1,0)}}}),n._v(" "),o("span",{staticClass:"crop-point point5",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,2,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,2,0)}}}),n._v(" "),o("span",{staticClass:"crop-point point6",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,1,2)},touchstart:function(r){n.changeCropSize(r,!0,!0,1,2)}}}),n._v(" "),o("span",{staticClass:"crop-point point7",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,2)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,2)}}}),n._v(" "),o("span",{staticClass:"crop-point point8",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,2,2)},touchstart:function(r){n.changeCropSize(r,!0,!0,2,2)}}})])])])};d._withStripped=!0;var C={};C.getData=function(n){return new Promise(function(t,o){var r={};(function(l){var f=null;return new Promise(function(m,y){if(l.src)if(/^data\:/i.test(l.src))f=function(h){h=h.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var p=atob(h),g=p.length,w=new ArrayBuffer(g),v=new Uint8Array(w),b=0;b<g;b++)v[b]=p.charCodeAt(b);return w}(l.src),m(f);else if(/^blob\:/i.test(l.src)){var x=new FileReader;x.onload=function(h){f=h.target.result,m(f)},function(h,p){var g=new XMLHttpRequest;g.open("GET",h,!0),g.responseType="blob",g.onload=function(w){this.status!=200&&this.status!==0||p(this.response)},g.send()}(l.src,function(h){x.readAsArrayBuffer(h)})}else{var c=new XMLHttpRequest;c.onload=function(){if(this.status!=200&&this.status!==0)throw"Could not load image";f=c.response,m(f),c=null},c.open("GET",l.src,!0),c.responseType="arraybuffer",c.send(null)}else y("img error")})})(n).then(function(l){r.arrayBuffer=l,r.orientation=function(f){var m,y,x,c,h,p,g,w,v,b=new DataView(f),_=b.byteLength;if(b.getUint8(0)===255&&b.getUint8(1)===216)for(w=2;w<_;){if(b.getUint8(w)===255&&b.getUint8(w+1)===225){p=w;break}w++}if(p&&(y=p+10,function(S,E,A){var O,M="";for(O=E,A+=E;O<A;O++)M+=String.fromCharCode(S.getUint8(O));return M}(b,p+4,4)==="Exif"&&(h=b.getUint16(y),((c=h===18761)||h===19789)&&b.getUint16(y+2,c)===42&&(x=b.getUint32(y+4,c))>=8&&(g=y+x))),g){for(_=b.getUint16(g,c),v=0;v<_;v++)if(w=g+12*v+2,b.getUint16(w,c)===274){w+=8,m=b.getUint16(w,c);break}}return m}(l),t(r)}).catch(function(l){o(l)})})};var $=C,I={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:function(){return 10}}},computed:{cropInfo:function(){var n={};if(n.top=this.cropOffsertY>21?"-21px":"0px",n.width=this.cropW>0?this.cropW:0,n.height=this.cropH>0?this.cropH:0,this.infoTrue){var t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),n.width=n.width*t,n.height=n.height*t,this.full&&(n.width=n.width/this.scale,n.height=n.height/this.scale)}return n.width=n.width.toFixed(0),n.height=n.height.toFixed(0),n},isIE:function(){var n=!!window.ActiveXObject||"ActiveXObject"in window;return n},passive:function(){return this.isIE?null:{passive:!1}}},watch:{img:function(){this.checkedImg()},imgs:function(n){n!==""&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(n,t){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(n){n&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion:function(n){for(var t=navigator.userAgent.split(" "),o="",r=new RegExp(n,"i"),l=0;l<t.length;l++)r.test(t[l])&&(o=t[l]);return o?o.split("/")[1].split("."):["0","0","0"]},checkOrientationImage:function(n,t,o,r){var l=this;if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){var f=this.getVersion("version");f[0]>13&&f[1]>1&&(t=-1)}else{var m=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(m){var y=m[1];((y=y.split("_"))[0]>13||y[0]>=13&&y[1]>=4)&&(t=-1)}}var x=document.createElement("canvas"),c=x.getContext("2d");switch(c.save(),t){case 2:x.width=o,x.height=r,c.translate(o,0),c.scale(-1,1);break;case 3:x.width=o,x.height=r,c.translate(o/2,r/2),c.rotate(180*Math.PI/180),c.translate(-o/2,-r/2);break;case 4:x.width=o,x.height=r,c.translate(0,r),c.scale(1,-1);break;case 5:x.height=o,x.width=r,c.rotate(.5*Math.PI),c.scale(1,-1);break;case 6:x.width=r,x.height=o,c.translate(r/2,o/2),c.rotate(90*Math.PI/180),c.translate(-o/2,-r/2);break;case 7:x.height=o,x.width=r,c.rotate(.5*Math.PI),c.translate(o,-r),c.scale(-1,1);break;case 8:x.height=o,x.width=r,c.translate(r/2,o/2),c.rotate(-90*Math.PI/180),c.translate(-o/2,-r/2);break;default:x.width=o,x.height=r}c.drawImage(n,0,0,o,r),c.restore(),x.toBlob(function(h){var p=URL.createObjectURL(h);URL.revokeObjectURL(l.imgs),l.imgs=p},"image/"+this.outputType,1)},checkedImg:function(){var n=this;if(this.img===null||this.img==="")return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var t=new Image;if(t.onload=function(){if(n.img==="")return n.$emit("imgLoad","error"),n.$emit("img-load","error"),!1;var r=t.width,l=t.height;$.getData(t).then(function(f){n.orientation=f.orientation||1;var m=n.maxImgSize;!n.orientation&&r<m&l<m?n.imgs=n.img:(r>m&&(l=l/r*m,r=m),l>m&&(r=r/l*m,l=m),n.checkOrientationImage(t,n.orientation,r,l))})},t.onerror=function(){n.$emit("imgLoad","error"),n.$emit("img-load","error")},this.img.substr(0,4)!=="data"&&(t.crossOrigin=""),this.isIE){var o=new XMLHttpRequest;o.onload=function(){var r=URL.createObjectURL(this.response);t.src=r},o.open("GET",this.img,!0),o.responseType="blob",o.send()}else t.src=this.img},startMove:function(n){if(n.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=(n.clientX?n.clientX:n.touches[0].clientX)-this.x,this.moveY=(n.clientY?n.clientY:n.touches[0].clientY)-this.y,n.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),n.touches.length==2&&(this.touches=n.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=n.offsetX?n.offsetX:n.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=n.offsetY?n.offsetY:n.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX=n.clientX?n.clientX:n.touches[0].clientX,this.cropY=n.clientY?n.clientY:n.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(n){var t=this;n.preventDefault();var o=this.scale,r=this.touches[0].clientX,l=this.touches[0].clientY,f=n.touches[0].clientX,m=n.touches[0].clientY,y=this.touches[1].clientX,x=this.touches[1].clientY,c=n.touches[1].clientX,h=n.touches[1].clientY,p=Math.sqrt(Math.pow(r-y,2)+Math.pow(l-x,2)),g=Math.sqrt(Math.pow(f-c,2)+Math.pow(m-h,2))-p,w=1,v=(w=(w=w/this.trueWidth>w/this.trueHeight?w/this.trueHeight:w/this.trueWidth)>.1?.1:w)*g;if(!this.touchNow){if(this.touchNow=!0,g>0?o+=Math.abs(v):g<0&&o>Math.abs(v)&&(o-=Math.abs(v)),this.touches=n.touches,setTimeout(function(){t.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o}},cancelTouchScale:function(n){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(n){var t=this;if(n.preventDefault(),n.touches&&n.touches.length===2)return this.touches=n.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var o,r,l=n.clientX?n.clientX:n.touches[0].clientX,f=n.clientY?n.clientY:n.touches[0].clientY;o=l-this.moveX,r=f-this.moveY,this.$nextTick(function(){if(t.centerBox){var m,y,x,c,h=t.getImgAxis(o,r,t.scale),p=t.getCropAxis(),g=t.trueHeight*t.scale,w=t.trueWidth*t.scale;switch(t.rotate){case 1:case-1:case 3:case-3:m=t.cropOffsertX-t.trueWidth*(1-t.scale)/2+(g-w)/2,y=t.cropOffsertY-t.trueHeight*(1-t.scale)/2+(w-g)/2,x=m-g+t.cropW,c=y-w+t.cropH;break;default:m=t.cropOffsertX-t.trueWidth*(1-t.scale)/2,y=t.cropOffsertY-t.trueHeight*(1-t.scale)/2,x=m-w+t.cropW,c=y-g+t.cropH}h.x1>=p.x1&&(o=m),h.y1>=p.y1&&(r=y),h.x2<=p.x2&&(o=x),h.y2<=p.y2&&(r=c)}t.x=o,t.y=r,t.$emit("imgMoving",{moving:!0,axis:t.getImgAxis()}),t.$emit("img-moving",{moving:!0,axis:t.getImgAxis()})})},leaveImg:function(n){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(n){var t=this;n.preventDefault();var o=this.scale,r=n.deltaY||n.wheelDelta;r=navigator.userAgent.indexOf("Firefox")>0?30*r:r,this.isIE&&(r=-r);var l=this.coe,f=(l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth)*r;f<0?o+=Math.abs(f):o>Math.abs(f)&&(o-=Math.abs(f));var m=f<0?"add":"reduce";if(m!==this.coeStatus&&(this.coeStatus=m,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(function(){t.scaling=!1,t.coe=t.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o},changeScale:function(n){var t=this.scale;n=n||1;var o=20;if((n*=o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth)>0?t+=Math.abs(n):t>Math.abs(n)&&(t-=Math.abs(n)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop:function(n){var t=this;n.preventDefault();var o=n.clientX?n.clientX:n.touches?n.touches[0].clientX:0,r=n.clientY?n.clientY:n.touches?n.touches[0].clientY:0;this.$nextTick(function(){var l=o-t.cropX,f=r-t.cropY;if(l>0?(t.cropW=l+t.cropChangeX>t.w?t.w-t.cropChangeX:l,t.cropOffsertX=t.cropChangeX):(t.cropW=t.w-t.cropChangeX+Math.abs(l)>t.w?t.cropChangeX:Math.abs(l),t.cropOffsertX=t.cropChangeX+l>0?t.cropChangeX+l:0),t.fixed){var m=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];m+t.cropOffsertY>t.h?(t.cropH=t.h-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0],t.cropOffsertX=l>0?t.cropChangeX:t.cropChangeX-t.cropW):t.cropH=m,t.cropOffsertY=t.cropOffsertY}else f>0?(t.cropH=f+t.cropChangeY>t.h?t.h-t.cropChangeY:f,t.cropOffsertY=t.cropChangeY):(t.cropH=t.h-t.cropChangeY+Math.abs(f)>t.h?t.cropChangeY:Math.abs(f),t.cropOffsertY=t.cropChangeY+f>0?t.cropChangeY+f:0)})},changeCropSize:function(n,t,o,r,l){n.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=o,this.changeCropTypeX=r,this.changeCropTypeY=l,this.cropX=n.clientX?n.clientX:n.touches[0].clientX,this.cropY=n.clientY?n.clientY:n.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow:function(n){var t=this;n.preventDefault();var o=n.clientX?n.clientX:n.touches?n.touches[0].clientX:0,r=n.clientY?n.clientY:n.touches?n.touches[0].clientY:0,l=this.w,f=this.h,m=0,y=0;if(this.centerBox){var x=this.getImgAxis(),c=x.x2,h=x.y2;m=x.x1>0?x.x1:0,y=x.y1>0?x.y1:0,l>c&&(l=c),f>h&&(f=h)}this.$nextTick(function(){var p=o-t.cropX,g=r-t.cropY;if(t.canChangeX&&(t.changeCropTypeX===1?t.cropOldW-p>0?(t.cropW=l-t.cropChangeX-p<=l-m?t.cropOldW-p:t.cropOldW+t.cropChangeX-m,t.cropOffsertX=l-t.cropChangeX-p<=l-m?t.cropChangeX+p:m):(t.cropW=Math.abs(p)+t.cropChangeX<=l?Math.abs(p)-t.cropOldW:l-t.cropOldW-t.cropChangeX,t.cropOffsertX=t.cropChangeX+t.cropOldW):t.changeCropTypeX===2&&(t.cropOldW+p>0?(t.cropW=t.cropOldW+p+t.cropOffsertX<=l?t.cropOldW+p:l-t.cropOffsertX,t.cropOffsertX=t.cropChangeX):(t.cropW=l-t.cropChangeX+Math.abs(p+t.cropOldW)<=l-m?Math.abs(p+t.cropOldW):t.cropChangeX-m,t.cropOffsertX=l-t.cropChangeX+Math.abs(p+t.cropOldW)<=l-m?t.cropChangeX-Math.abs(p+t.cropOldW):m))),t.canChangeY&&(t.changeCropTypeY===1?t.cropOldH-g>0?(t.cropH=f-t.cropChangeY-g<=f-y?t.cropOldH-g:t.cropOldH+t.cropChangeY-y,t.cropOffsertY=f-t.cropChangeY-g<=f-y?t.cropChangeY+g:y):(t.cropH=Math.abs(g)+t.cropChangeY<=f?Math.abs(g)-t.cropOldH:f-t.cropOldH-t.cropChangeY,t.cropOffsertY=t.cropChangeY+t.cropOldH):t.changeCropTypeY===2&&(t.cropOldH+g>0?(t.cropH=t.cropOldH+g+t.cropOffsertY<=f?t.cropOldH+g:f-t.cropOffsertY,t.cropOffsertY=t.cropChangeY):(t.cropH=f-t.cropChangeY+Math.abs(g+t.cropOldH)<=f-y?Math.abs(g+t.cropOldH):t.cropChangeY-y,t.cropOffsertY=f-t.cropChangeY+Math.abs(g+t.cropOldH)<=f-y?t.cropChangeY-Math.abs(g+t.cropOldH):y))),t.canChangeX&&t.fixed){var w=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];w+t.cropOffsertY>f?(t.cropH=f-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0]):t.cropH=w}if(t.canChangeY&&t.fixed){var v=t.cropH/t.fixedNumber[1]*t.fixedNumber[0];v+t.cropOffsertX>l?(t.cropW=l-t.cropOffsertX,t.cropH=t.cropW/t.fixedNumber[0]*t.fixedNumber[1]):t.cropW=v}})},checkCropLimitSize:function(){this.cropW,this.cropH;var n=this.limitMinSize,t=new Array;return t=Array.isArray[n]?n:[n,n],[parseFloat(t[0]),parseFloat(t[1])]},changeCropEnd:function(n){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){this.cropW===0&&this.cropH===0&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(n){if(n.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(n),!1;if(n.touches&&n.touches.length===2)return this.crop=!1,this.startMove(n),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var t,o,r=n.clientX?n.clientX:n.touches[0].clientX,l=n.clientY?n.clientY:n.touches[0].clientY;t=r-this.cropOffsertX,o=l-this.cropOffsertY,this.cropX=t,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(n,t){var o=this,r=0,l=0;n&&(n.preventDefault(),r=n.clientX?n.clientX:n.touches[0].clientX,l=n.clientY?n.clientY:n.touches[0].clientY),this.$nextTick(function(){var f,m,y=r-o.cropX,x=l-o.cropY;if(t&&(y=o.cropOffsertX,x=o.cropOffsertY),f=y<=0?0:y+o.cropW>o.w?o.w-o.cropW:y,m=x<=0?0:x+o.cropH>o.h?o.h-o.cropH:x,o.centerBox){var c=o.getImgAxis();f<=c.x1&&(f=c.x1),f+o.cropW>c.x2&&(f=c.x2-o.cropW),m<=c.y1&&(m=c.y1),m+o.cropH>c.y2&&(m=c.y2-o.cropH)}o.cropOffsertX=f,o.cropOffsertY=m,o.$emit("cropMoving",{moving:!0,axis:o.getCropAxis()}),o.$emit("crop-moving",{moving:!0,axis:o.getCropAxis()})})},getImgAxis:function(n,t,o){n=n||this.x,t=t||this.y,o=o||this.scale;var r={x1:0,x2:0,y1:0,y2:0},l=this.trueWidth*o,f=this.trueHeight*o;switch(this.rotate){case 0:r.x1=n+this.trueWidth*(1-o)/2,r.x2=r.x1+this.trueWidth*o,r.y1=t+this.trueHeight*(1-o)/2,r.y2=r.y1+this.trueHeight*o;break;case 1:case-1:case 3:case-3:r.x1=n+this.trueWidth*(1-o)/2+(l-f)/2,r.x2=r.x1+this.trueHeight*o,r.y1=t+this.trueHeight*(1-o)/2+(f-l)/2,r.y2=r.y1+this.trueWidth*o;break;default:r.x1=n+this.trueWidth*(1-o)/2,r.x2=r.x1+this.trueWidth*o,r.y1=t+this.trueHeight*(1-o)/2,r.y2=r.y1+this.trueHeight*o}return r},getCropAxis:function(){var n={x1:0,x2:0,y1:0,y2:0};return n.x1=this.cropOffsertX,n.x2=n.x1+this.cropW,n.y1=this.cropOffsertY,n.y2=n.y1+this.cropH,n},leaveCrop:function(n){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(n){var t=this,o=document.createElement("canvas"),r=new Image,l=this.rotate,f=this.trueWidth,m=this.trueHeight,y=this.cropOffsertX,x=this.cropOffsertY;function c(h,p){o.width=Math.round(h),o.height=Math.round(p)}r.onload=function(){if(t.cropW!==0){var h=o.getContext("2d"),p=1;t.high&!t.full&&(p=window.devicePixelRatio),t.enlarge!==1&!t.full&&(p=Math.abs(Number(t.enlarge)));var g=t.cropW*p,w=t.cropH*p,v=f*t.scale*p,b=m*t.scale*p,_=(t.x-y+t.trueWidth*(1-t.scale)/2)*p,S=(t.y-x+t.trueHeight*(1-t.scale)/2)*p;switch(c(g,w),h.save(),l){case 0:t.full?(c(g/t.scale,w/t.scale),h.drawImage(r,_/t.scale,S/t.scale,v/t.scale,b/t.scale)):h.drawImage(r,_,S,v,b);break;case 1:case-3:t.full?(c(g/t.scale,w/t.scale),_=_/t.scale+(v/t.scale-b/t.scale)/2,S=S/t.scale+(b/t.scale-v/t.scale)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,S,-_-b/t.scale,v/t.scale,b/t.scale)):(_+=(v-b)/2,S+=(b-v)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,S,-_-b,v,b));break;case 2:case-2:t.full?(c(g/t.scale,w/t.scale),h.rotate(90*l*Math.PI/180),_/=t.scale,S/=t.scale,h.drawImage(r,-_-v/t.scale,-S-b/t.scale,v/t.scale,b/t.scale)):(h.rotate(90*l*Math.PI/180),h.drawImage(r,-_-v,-S-b,v,b));break;case 3:case-1:t.full?(c(g/t.scale,w/t.scale),_=_/t.scale+(v/t.scale-b/t.scale)/2,S=S/t.scale+(b/t.scale-v/t.scale)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,-S-v/t.scale,_,v/t.scale,b/t.scale)):(_+=(v-b)/2,S+=(b-v)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,-S-v,_,v,b));break;default:t.full?(c(g/t.scale,w/t.scale),h.drawImage(r,_/t.scale,S/t.scale,v/t.scale,b/t.scale)):h.drawImage(r,_,S,v,b)}h.restore()}else{var E=f*t.scale,A=m*t.scale,O=o.getContext("2d");switch(O.save(),l){case 0:c(E,A),O.drawImage(r,0,0,E,A);break;case 1:case-3:c(A,E),O.rotate(90*l*Math.PI/180),O.drawImage(r,0,-A,E,A);break;case 2:case-2:c(E,A),O.rotate(90*l*Math.PI/180),O.drawImage(r,-E,-A,E,A);break;case 3:case-1:c(A,E),O.rotate(90*l*Math.PI/180),O.drawImage(r,-E,0,E,A);break;default:c(E,A),O.drawImage(r,0,0,E,A)}O.restore()}n(o)},this.img.substr(0,4)!=="data"&&(r.crossOrigin="Anonymous"),r.src=this.imgs},getCropData:function(n){var t=this;this.getCropChecked(function(o){n(o.toDataURL("image/"+t.outputType,t.outputSize))})},getCropBlob:function(n){var t=this;this.getCropChecked(function(o){o.toBlob(function(r){return n(r)},"image/"+t.outputType,t.outputSize)})},showPreview:function(){var n=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout(function(){n.isCanShow=!0},16);var t=this.cropW,o=this.cropH,r=this.scale,l={};l.div={width:"".concat(t,"px"),height:"".concat(o,"px")};var f=(this.x-this.cropOffsertX)/r,m=(this.y-this.cropOffsertY)/r;l.w=t,l.h=o,l.url=this.imgs,l.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(r,")translate3d(").concat(f,"px, ").concat(m,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},l.html=`
|
|
208
|
+
`);var w=$(c.insertAt.before,p);p.insertBefore(h,w)}}function r(c){if(c.parentNode===null)return!1;c.parentNode.removeChild(c);var h=k.indexOf(c);h>=0&&k.splice(h,1)}function l(c){var h=document.createElement("style");if(c.attrs.type===void 0&&(c.attrs.type="text/css"),c.attrs.nonce===void 0){var p=function(){return u.nc}();p&&(c.attrs.nonce=p)}return f(h,c.attrs),o(c,h),h}function f(c,h){Object.keys(h).forEach(function(p){c.setAttribute(p,h[p])})}function m(c,h){var p,g,w,v;if(h.transform&&c.css){if(!(v=typeof h.transform=="function"?h.transform(c.css):h.transform.default(c.css)))return function(){};c.css=v}if(h.singleton){var b=L++;p=S||(S=l(h)),g=x.bind(null,p,b,!1),w=x.bind(null,p,b,!0)}else c.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(p=function(_){var I=document.createElement("link");return _.attrs.type===void 0&&(_.attrs.type="text/css"),_.attrs.rel="stylesheet",f(I,_.attrs),o(_,I),I}(h),g=function(_,I,E){var A=E.css,O=E.sourceMap,M=I.convertToAbsoluteUrls===void 0&&O;(I.convertToAbsoluteUrls||M)&&(A=T(A)),O&&(A+=`
|
|
209
|
+
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(O))))+" */");var j=new Blob([A],{type:"text/css"}),R=_.href;_.href=URL.createObjectURL(j),R&&URL.revokeObjectURL(R)}.bind(null,p,h),w=function(){r(p),p.href&&URL.revokeObjectURL(p.href)}):(p=l(h),g=function(_,I){var E=I.css,A=I.media;if(A&&_.setAttribute("media",A),_.styleSheet)_.styleSheet.cssText=E;else{for(;_.firstChild;)_.removeChild(_.firstChild);_.appendChild(document.createTextNode(E))}}.bind(null,p),w=function(){r(p)});return g(c),function(_){if(_){if(_.css===c.css&&_.media===c.media&&_.sourceMap===c.sourceMap)return;g(c=_)}else w()}}i.exports=function(c,h){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(h=h||{}).attrs=typeof h.attrs=="object"?h.attrs:{},h.singleton||typeof h.singleton=="boolean"||(h.singleton=C()),h.insertInto||(h.insertInto="head"),h.insertAt||(h.insertAt="bottom");var p=t(c,h);return n(p,h),function(g){for(var w=[],v=0;v<p.length;v++){var b=p[v];(_=d[b.id]).refs--,w.push(_)}for(g&&n(t(g,h),h),v=0;v<w.length;v++){var _;if((_=w[v]).refs===0){for(var I=0;I<_.parts.length;I++)_.parts[I]();delete d[_.id]}}}};var y=function(){var c=[];return function(h,p){return c[h]=p,c.filter(Boolean).join(`
|
|
210
|
+
`)}}();function x(c,h,p,g){var w=p?"":g.css;if(c.styleSheet)c.styleSheet.cssText=y(h,w);else{var v=document.createTextNode(w),b=c.childNodes;b[h]&&c.removeChild(b[h]),b.length?c.insertBefore(v,b[h]):c.appendChild(v)}}},function(i,a){i.exports=function(u){var d=typeof window<"u"&&window.location;if(!d)throw new Error("fixUrls requires window.location");if(!u||typeof u!="string")return u;var C=d.protocol+"//"+d.host,$=C+d.pathname.replace(/\/[^\/]*$/,"/");return u.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(S,L){var k,T=L.trim().replace(/^"(.*)"$/,function(n,t){return t}).replace(/^'(.*)'$/,function(n,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(T)?S:(k=T.indexOf("//")===0?T:T.indexOf("/")===0?C+T:$+T.replace(/^\.\//,""),"url("+JSON.stringify(k)+")")})}},function(i,a,u){u.r(a);var d=function(){var n=this,t=n.$createElement,o=n._self._c||t;return o("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:n.scaleImg,mouseout:n.cancelScale}},[n.imgs?o("div",{staticClass:"cropper-box"},[o("div",{directives:[{name:"show",rawName:"v-show",value:!n.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:n.trueWidth+"px",height:n.trueHeight+"px",transform:"scale("+n.scale+","+n.scale+") translate3d("+n.x/n.scale+"px,"+n.y/n.scale+"px,0)rotateZ("+90*n.rotate+"deg)"}},[o("img",{ref:"cropperImg",attrs:{src:n.imgs,alt:"cropper-img"}})])]):n._e(),n._v(" "),o("div",{staticClass:"cropper-drag-box",class:{"cropper-move":n.move&&!n.crop,"cropper-crop":n.crop,"cropper-modal":n.cropping},on:{mousedown:n.startMove,touchstart:n.startMove}}),n._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:n.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:n.cropW+"px",height:n.cropH+"px",transform:"translate3d("+n.cropOffsertX+"px,"+n.cropOffsertY+"px,0)"}},[o("span",{staticClass:"cropper-view-box"},[o("img",{style:{width:n.trueWidth+"px",height:n.trueHeight+"px",transform:"scale("+n.scale+","+n.scale+") translate3d("+(n.x-n.cropOffsertX)/n.scale+"px,"+(n.y-n.cropOffsertY)/n.scale+"px,0)rotateZ("+90*n.rotate+"deg)"},attrs:{src:n.imgs,alt:"cropper-img"}})]),n._v(" "),o("span",{staticClass:"cropper-face cropper-move",on:{mousedown:n.cropMove,touchstart:n.cropMove}}),n._v(" "),n.info?o("span",{staticClass:"crop-info",style:{top:n.cropInfo.top}},[n._v(n._s(this.cropInfo.width)+" \xD7 "+n._s(this.cropInfo.height))]):n._e(),n._v(" "),n.fixedBox?n._e():o("span",[o("span",{staticClass:"crop-line line-w",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,1)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,1)}}}),n._v(" "),o("span",{staticClass:"crop-line line-a",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,1,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,1,0)}}}),n._v(" "),o("span",{staticClass:"crop-line line-s",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,2)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,2)}}}),n._v(" "),o("span",{staticClass:"crop-line line-d",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,2,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,2,0)}}}),n._v(" "),o("span",{staticClass:"crop-point point1",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,1,1)},touchstart:function(r){n.changeCropSize(r,!0,!0,1,1)}}}),n._v(" "),o("span",{staticClass:"crop-point point2",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,1)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,1)}}}),n._v(" "),o("span",{staticClass:"crop-point point3",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,2,1)},touchstart:function(r){n.changeCropSize(r,!0,!0,2,1)}}}),n._v(" "),o("span",{staticClass:"crop-point point4",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,1,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,1,0)}}}),n._v(" "),o("span",{staticClass:"crop-point point5",on:{mousedown:function(r){n.changeCropSize(r,!0,!1,2,0)},touchstart:function(r){n.changeCropSize(r,!0,!1,2,0)}}}),n._v(" "),o("span",{staticClass:"crop-point point6",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,1,2)},touchstart:function(r){n.changeCropSize(r,!0,!0,1,2)}}}),n._v(" "),o("span",{staticClass:"crop-point point7",on:{mousedown:function(r){n.changeCropSize(r,!1,!0,0,2)},touchstart:function(r){n.changeCropSize(r,!1,!0,0,2)}}}),n._v(" "),o("span",{staticClass:"crop-point point8",on:{mousedown:function(r){n.changeCropSize(r,!0,!0,2,2)},touchstart:function(r){n.changeCropSize(r,!0,!0,2,2)}}})])])])};d._withStripped=!0;var C={};C.getData=function(n){return new Promise(function(t,o){var r={};(function(l){var f=null;return new Promise(function(m,y){if(l.src)if(/^data\:/i.test(l.src))f=function(h){h=h.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var p=atob(h),g=p.length,w=new ArrayBuffer(g),v=new Uint8Array(w),b=0;b<g;b++)v[b]=p.charCodeAt(b);return w}(l.src),m(f);else if(/^blob\:/i.test(l.src)){var x=new FileReader;x.onload=function(h){f=h.target.result,m(f)},function(h,p){var g=new XMLHttpRequest;g.open("GET",h,!0),g.responseType="blob",g.onload=function(w){this.status!=200&&this.status!==0||p(this.response)},g.send()}(l.src,function(h){x.readAsArrayBuffer(h)})}else{var c=new XMLHttpRequest;c.onload=function(){if(this.status!=200&&this.status!==0)throw"Could not load image";f=c.response,m(f),c=null},c.open("GET",l.src,!0),c.responseType="arraybuffer",c.send(null)}else y("img error")})})(n).then(function(l){r.arrayBuffer=l,r.orientation=function(f){var m,y,x,c,h,p,g,w,v,b=new DataView(f),_=b.byteLength;if(b.getUint8(0)===255&&b.getUint8(1)===216)for(w=2;w<_;){if(b.getUint8(w)===255&&b.getUint8(w+1)===225){p=w;break}w++}if(p&&(y=p+10,function(I,E,A){var O,M="";for(O=E,A+=E;O<A;O++)M+=String.fromCharCode(I.getUint8(O));return M}(b,p+4,4)==="Exif"&&(h=b.getUint16(y),((c=h===18761)||h===19789)&&b.getUint16(y+2,c)===42&&(x=b.getUint32(y+4,c))>=8&&(g=y+x))),g){for(_=b.getUint16(g,c),v=0;v<_;v++)if(w=g+12*v+2,b.getUint16(w,c)===274){w+=8,m=b.getUint16(w,c);break}}return m}(l),t(r)}).catch(function(l){o(l)})})};var $=C,S={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:function(){return 10}}},computed:{cropInfo:function(){var n={};if(n.top=this.cropOffsertY>21?"-21px":"0px",n.width=this.cropW>0?this.cropW:0,n.height=this.cropH>0?this.cropH:0,this.infoTrue){var t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),n.width=n.width*t,n.height=n.height*t,this.full&&(n.width=n.width/this.scale,n.height=n.height/this.scale)}return n.width=n.width.toFixed(0),n.height=n.height.toFixed(0),n},isIE:function(){var n=!!window.ActiveXObject||"ActiveXObject"in window;return n},passive:function(){return this.isIE?null:{passive:!1}}},watch:{img:function(){this.checkedImg()},imgs:function(n){n!==""&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(n,t){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(n){n&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion:function(n){for(var t=navigator.userAgent.split(" "),o="",r=new RegExp(n,"i"),l=0;l<t.length;l++)r.test(t[l])&&(o=t[l]);return o?o.split("/")[1].split("."):["0","0","0"]},checkOrientationImage:function(n,t,o,r){var l=this;if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){var f=this.getVersion("version");f[0]>13&&f[1]>1&&(t=-1)}else{var m=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(m){var y=m[1];((y=y.split("_"))[0]>13||y[0]>=13&&y[1]>=4)&&(t=-1)}}var x=document.createElement("canvas"),c=x.getContext("2d");switch(c.save(),t){case 2:x.width=o,x.height=r,c.translate(o,0),c.scale(-1,1);break;case 3:x.width=o,x.height=r,c.translate(o/2,r/2),c.rotate(180*Math.PI/180),c.translate(-o/2,-r/2);break;case 4:x.width=o,x.height=r,c.translate(0,r),c.scale(1,-1);break;case 5:x.height=o,x.width=r,c.rotate(.5*Math.PI),c.scale(1,-1);break;case 6:x.width=r,x.height=o,c.translate(r/2,o/2),c.rotate(90*Math.PI/180),c.translate(-o/2,-r/2);break;case 7:x.height=o,x.width=r,c.rotate(.5*Math.PI),c.translate(o,-r),c.scale(-1,1);break;case 8:x.height=o,x.width=r,c.translate(r/2,o/2),c.rotate(-90*Math.PI/180),c.translate(-o/2,-r/2);break;default:x.width=o,x.height=r}c.drawImage(n,0,0,o,r),c.restore(),x.toBlob(function(h){var p=URL.createObjectURL(h);URL.revokeObjectURL(l.imgs),l.imgs=p},"image/"+this.outputType,1)},checkedImg:function(){var n=this;if(this.img===null||this.img==="")return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var t=new Image;if(t.onload=function(){if(n.img==="")return n.$emit("imgLoad","error"),n.$emit("img-load","error"),!1;var r=t.width,l=t.height;$.getData(t).then(function(f){n.orientation=f.orientation||1;var m=n.maxImgSize;!n.orientation&&r<m&l<m?n.imgs=n.img:(r>m&&(l=l/r*m,r=m),l>m&&(r=r/l*m,l=m),n.checkOrientationImage(t,n.orientation,r,l))})},t.onerror=function(){n.$emit("imgLoad","error"),n.$emit("img-load","error")},this.img.substr(0,4)!=="data"&&(t.crossOrigin=""),this.isIE){var o=new XMLHttpRequest;o.onload=function(){var r=URL.createObjectURL(this.response);t.src=r},o.open("GET",this.img,!0),o.responseType="blob",o.send()}else t.src=this.img},startMove:function(n){if(n.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=(n.clientX?n.clientX:n.touches[0].clientX)-this.x,this.moveY=(n.clientY?n.clientY:n.touches[0].clientY)-this.y,n.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),n.touches.length==2&&(this.touches=n.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=n.offsetX?n.offsetX:n.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=n.offsetY?n.offsetY:n.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX=n.clientX?n.clientX:n.touches[0].clientX,this.cropY=n.clientY?n.clientY:n.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(n){var t=this;n.preventDefault();var o=this.scale,r=this.touches[0].clientX,l=this.touches[0].clientY,f=n.touches[0].clientX,m=n.touches[0].clientY,y=this.touches[1].clientX,x=this.touches[1].clientY,c=n.touches[1].clientX,h=n.touches[1].clientY,p=Math.sqrt(Math.pow(r-y,2)+Math.pow(l-x,2)),g=Math.sqrt(Math.pow(f-c,2)+Math.pow(m-h,2))-p,w=1,v=(w=(w=w/this.trueWidth>w/this.trueHeight?w/this.trueHeight:w/this.trueWidth)>.1?.1:w)*g;if(!this.touchNow){if(this.touchNow=!0,g>0?o+=Math.abs(v):g<0&&o>Math.abs(v)&&(o-=Math.abs(v)),this.touches=n.touches,setTimeout(function(){t.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o}},cancelTouchScale:function(n){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(n){var t=this;if(n.preventDefault(),n.touches&&n.touches.length===2)return this.touches=n.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var o,r,l=n.clientX?n.clientX:n.touches[0].clientX,f=n.clientY?n.clientY:n.touches[0].clientY;o=l-this.moveX,r=f-this.moveY,this.$nextTick(function(){if(t.centerBox){var m,y,x,c,h=t.getImgAxis(o,r,t.scale),p=t.getCropAxis(),g=t.trueHeight*t.scale,w=t.trueWidth*t.scale;switch(t.rotate){case 1:case-1:case 3:case-3:m=t.cropOffsertX-t.trueWidth*(1-t.scale)/2+(g-w)/2,y=t.cropOffsertY-t.trueHeight*(1-t.scale)/2+(w-g)/2,x=m-g+t.cropW,c=y-w+t.cropH;break;default:m=t.cropOffsertX-t.trueWidth*(1-t.scale)/2,y=t.cropOffsertY-t.trueHeight*(1-t.scale)/2,x=m-w+t.cropW,c=y-g+t.cropH}h.x1>=p.x1&&(o=m),h.y1>=p.y1&&(r=y),h.x2<=p.x2&&(o=x),h.y2<=p.y2&&(r=c)}t.x=o,t.y=r,t.$emit("imgMoving",{moving:!0,axis:t.getImgAxis()}),t.$emit("img-moving",{moving:!0,axis:t.getImgAxis()})})},leaveImg:function(n){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(n){var t=this;n.preventDefault();var o=this.scale,r=n.deltaY||n.wheelDelta;r=navigator.userAgent.indexOf("Firefox")>0?30*r:r,this.isIE&&(r=-r);var l=this.coe,f=(l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth)*r;f<0?o+=Math.abs(f):o>Math.abs(f)&&(o-=Math.abs(f));var m=f<0?"add":"reduce";if(m!==this.coeStatus&&(this.coeStatus=m,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(function(){t.scaling=!1,t.coe=t.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o},changeScale:function(n){var t=this.scale;n=n||1;var o=20;if((n*=o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth)>0?t+=Math.abs(n):t>Math.abs(n)&&(t-=Math.abs(n)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop:function(n){var t=this;n.preventDefault();var o=n.clientX?n.clientX:n.touches?n.touches[0].clientX:0,r=n.clientY?n.clientY:n.touches?n.touches[0].clientY:0;this.$nextTick(function(){var l=o-t.cropX,f=r-t.cropY;if(l>0?(t.cropW=l+t.cropChangeX>t.w?t.w-t.cropChangeX:l,t.cropOffsertX=t.cropChangeX):(t.cropW=t.w-t.cropChangeX+Math.abs(l)>t.w?t.cropChangeX:Math.abs(l),t.cropOffsertX=t.cropChangeX+l>0?t.cropChangeX+l:0),t.fixed){var m=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];m+t.cropOffsertY>t.h?(t.cropH=t.h-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0],t.cropOffsertX=l>0?t.cropChangeX:t.cropChangeX-t.cropW):t.cropH=m,t.cropOffsertY=t.cropOffsertY}else f>0?(t.cropH=f+t.cropChangeY>t.h?t.h-t.cropChangeY:f,t.cropOffsertY=t.cropChangeY):(t.cropH=t.h-t.cropChangeY+Math.abs(f)>t.h?t.cropChangeY:Math.abs(f),t.cropOffsertY=t.cropChangeY+f>0?t.cropChangeY+f:0)})},changeCropSize:function(n,t,o,r,l){n.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=o,this.changeCropTypeX=r,this.changeCropTypeY=l,this.cropX=n.clientX?n.clientX:n.touches[0].clientX,this.cropY=n.clientY?n.clientY:n.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow:function(n){var t=this;n.preventDefault();var o=n.clientX?n.clientX:n.touches?n.touches[0].clientX:0,r=n.clientY?n.clientY:n.touches?n.touches[0].clientY:0,l=this.w,f=this.h,m=0,y=0;if(this.centerBox){var x=this.getImgAxis(),c=x.x2,h=x.y2;m=x.x1>0?x.x1:0,y=x.y1>0?x.y1:0,l>c&&(l=c),f>h&&(f=h)}this.$nextTick(function(){var p=o-t.cropX,g=r-t.cropY;if(t.canChangeX&&(t.changeCropTypeX===1?t.cropOldW-p>0?(t.cropW=l-t.cropChangeX-p<=l-m?t.cropOldW-p:t.cropOldW+t.cropChangeX-m,t.cropOffsertX=l-t.cropChangeX-p<=l-m?t.cropChangeX+p:m):(t.cropW=Math.abs(p)+t.cropChangeX<=l?Math.abs(p)-t.cropOldW:l-t.cropOldW-t.cropChangeX,t.cropOffsertX=t.cropChangeX+t.cropOldW):t.changeCropTypeX===2&&(t.cropOldW+p>0?(t.cropW=t.cropOldW+p+t.cropOffsertX<=l?t.cropOldW+p:l-t.cropOffsertX,t.cropOffsertX=t.cropChangeX):(t.cropW=l-t.cropChangeX+Math.abs(p+t.cropOldW)<=l-m?Math.abs(p+t.cropOldW):t.cropChangeX-m,t.cropOffsertX=l-t.cropChangeX+Math.abs(p+t.cropOldW)<=l-m?t.cropChangeX-Math.abs(p+t.cropOldW):m))),t.canChangeY&&(t.changeCropTypeY===1?t.cropOldH-g>0?(t.cropH=f-t.cropChangeY-g<=f-y?t.cropOldH-g:t.cropOldH+t.cropChangeY-y,t.cropOffsertY=f-t.cropChangeY-g<=f-y?t.cropChangeY+g:y):(t.cropH=Math.abs(g)+t.cropChangeY<=f?Math.abs(g)-t.cropOldH:f-t.cropOldH-t.cropChangeY,t.cropOffsertY=t.cropChangeY+t.cropOldH):t.changeCropTypeY===2&&(t.cropOldH+g>0?(t.cropH=t.cropOldH+g+t.cropOffsertY<=f?t.cropOldH+g:f-t.cropOffsertY,t.cropOffsertY=t.cropChangeY):(t.cropH=f-t.cropChangeY+Math.abs(g+t.cropOldH)<=f-y?Math.abs(g+t.cropOldH):t.cropChangeY-y,t.cropOffsertY=f-t.cropChangeY+Math.abs(g+t.cropOldH)<=f-y?t.cropChangeY-Math.abs(g+t.cropOldH):y))),t.canChangeX&&t.fixed){var w=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];w+t.cropOffsertY>f?(t.cropH=f-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0]):t.cropH=w}if(t.canChangeY&&t.fixed){var v=t.cropH/t.fixedNumber[1]*t.fixedNumber[0];v+t.cropOffsertX>l?(t.cropW=l-t.cropOffsertX,t.cropH=t.cropW/t.fixedNumber[0]*t.fixedNumber[1]):t.cropW=v}})},checkCropLimitSize:function(){this.cropW,this.cropH;var n=this.limitMinSize,t=new Array;return t=Array.isArray[n]?n:[n,n],[parseFloat(t[0]),parseFloat(t[1])]},changeCropEnd:function(n){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){this.cropW===0&&this.cropH===0&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(n){if(n.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(n),!1;if(n.touches&&n.touches.length===2)return this.crop=!1,this.startMove(n),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var t,o,r=n.clientX?n.clientX:n.touches[0].clientX,l=n.clientY?n.clientY:n.touches[0].clientY;t=r-this.cropOffsertX,o=l-this.cropOffsertY,this.cropX=t,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(n,t){var o=this,r=0,l=0;n&&(n.preventDefault(),r=n.clientX?n.clientX:n.touches[0].clientX,l=n.clientY?n.clientY:n.touches[0].clientY),this.$nextTick(function(){var f,m,y=r-o.cropX,x=l-o.cropY;if(t&&(y=o.cropOffsertX,x=o.cropOffsertY),f=y<=0?0:y+o.cropW>o.w?o.w-o.cropW:y,m=x<=0?0:x+o.cropH>o.h?o.h-o.cropH:x,o.centerBox){var c=o.getImgAxis();f<=c.x1&&(f=c.x1),f+o.cropW>c.x2&&(f=c.x2-o.cropW),m<=c.y1&&(m=c.y1),m+o.cropH>c.y2&&(m=c.y2-o.cropH)}o.cropOffsertX=f,o.cropOffsertY=m,o.$emit("cropMoving",{moving:!0,axis:o.getCropAxis()}),o.$emit("crop-moving",{moving:!0,axis:o.getCropAxis()})})},getImgAxis:function(n,t,o){n=n||this.x,t=t||this.y,o=o||this.scale;var r={x1:0,x2:0,y1:0,y2:0},l=this.trueWidth*o,f=this.trueHeight*o;switch(this.rotate){case 0:r.x1=n+this.trueWidth*(1-o)/2,r.x2=r.x1+this.trueWidth*o,r.y1=t+this.trueHeight*(1-o)/2,r.y2=r.y1+this.trueHeight*o;break;case 1:case-1:case 3:case-3:r.x1=n+this.trueWidth*(1-o)/2+(l-f)/2,r.x2=r.x1+this.trueHeight*o,r.y1=t+this.trueHeight*(1-o)/2+(f-l)/2,r.y2=r.y1+this.trueWidth*o;break;default:r.x1=n+this.trueWidth*(1-o)/2,r.x2=r.x1+this.trueWidth*o,r.y1=t+this.trueHeight*(1-o)/2,r.y2=r.y1+this.trueHeight*o}return r},getCropAxis:function(){var n={x1:0,x2:0,y1:0,y2:0};return n.x1=this.cropOffsertX,n.x2=n.x1+this.cropW,n.y1=this.cropOffsertY,n.y2=n.y1+this.cropH,n},leaveCrop:function(n){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(n){var t=this,o=document.createElement("canvas"),r=new Image,l=this.rotate,f=this.trueWidth,m=this.trueHeight,y=this.cropOffsertX,x=this.cropOffsertY;function c(h,p){o.width=Math.round(h),o.height=Math.round(p)}r.onload=function(){if(t.cropW!==0){var h=o.getContext("2d"),p=1;t.high&!t.full&&(p=window.devicePixelRatio),t.enlarge!==1&!t.full&&(p=Math.abs(Number(t.enlarge)));var g=t.cropW*p,w=t.cropH*p,v=f*t.scale*p,b=m*t.scale*p,_=(t.x-y+t.trueWidth*(1-t.scale)/2)*p,I=(t.y-x+t.trueHeight*(1-t.scale)/2)*p;switch(c(g,w),h.save(),l){case 0:t.full?(c(g/t.scale,w/t.scale),h.drawImage(r,_/t.scale,I/t.scale,v/t.scale,b/t.scale)):h.drawImage(r,_,I,v,b);break;case 1:case-3:t.full?(c(g/t.scale,w/t.scale),_=_/t.scale+(v/t.scale-b/t.scale)/2,I=I/t.scale+(b/t.scale-v/t.scale)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,I,-_-b/t.scale,v/t.scale,b/t.scale)):(_+=(v-b)/2,I+=(b-v)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,I,-_-b,v,b));break;case 2:case-2:t.full?(c(g/t.scale,w/t.scale),h.rotate(90*l*Math.PI/180),_/=t.scale,I/=t.scale,h.drawImage(r,-_-v/t.scale,-I-b/t.scale,v/t.scale,b/t.scale)):(h.rotate(90*l*Math.PI/180),h.drawImage(r,-_-v,-I-b,v,b));break;case 3:case-1:t.full?(c(g/t.scale,w/t.scale),_=_/t.scale+(v/t.scale-b/t.scale)/2,I=I/t.scale+(b/t.scale-v/t.scale)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,-I-v/t.scale,_,v/t.scale,b/t.scale)):(_+=(v-b)/2,I+=(b-v)/2,h.rotate(90*l*Math.PI/180),h.drawImage(r,-I-v,_,v,b));break;default:t.full?(c(g/t.scale,w/t.scale),h.drawImage(r,_/t.scale,I/t.scale,v/t.scale,b/t.scale)):h.drawImage(r,_,I,v,b)}h.restore()}else{var E=f*t.scale,A=m*t.scale,O=o.getContext("2d");switch(O.save(),l){case 0:c(E,A),O.drawImage(r,0,0,E,A);break;case 1:case-3:c(A,E),O.rotate(90*l*Math.PI/180),O.drawImage(r,0,-A,E,A);break;case 2:case-2:c(E,A),O.rotate(90*l*Math.PI/180),O.drawImage(r,-E,-A,E,A);break;case 3:case-1:c(A,E),O.rotate(90*l*Math.PI/180),O.drawImage(r,-E,0,E,A);break;default:c(E,A),O.drawImage(r,0,0,E,A)}O.restore()}n(o)},this.img.substr(0,4)!=="data"&&(r.crossOrigin="Anonymous"),r.src=this.imgs},getCropData:function(n){var t=this;this.getCropChecked(function(o){n(o.toDataURL("image/"+t.outputType,t.outputSize))})},getCropBlob:function(n){var t=this;this.getCropChecked(function(o){o.toBlob(function(r){return n(r)},"image/"+t.outputType,t.outputSize)})},showPreview:function(){var n=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout(function(){n.isCanShow=!0},16);var t=this.cropW,o=this.cropH,r=this.scale,l={};l.div={width:"".concat(t,"px"),height:"".concat(o,"px")};var f=(this.x-this.cropOffsertX)/r,m=(this.y-this.cropOffsertY)/r;l.w=t,l.h=o,l.url=this.imgs,l.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(r,")translate3d(").concat(f,"px, ").concat(m,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},l.html=`
|
|
211
211
|
<div class="show-preview" style="width: `.concat(l.w,"px; height: ").concat(l.h,`px,; overflow: hidden">
|
|
212
212
|
<div style="width: `).concat(t,"px; height: ").concat(o,`px">
|
|
213
213
|
<img src=`).concat(l.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,`px; transform:
|
|
214
214
|
scale(`).concat(r,")translate3d(").concat(f,"px, ").concat(m,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,`deg)">
|
|
215
215
|
</div>
|
|
216
|
-
</div>`),this.$emit("realTime",l),this.$emit("real-time",l)},reload:function(){var n=this,t=new Image;t.onload=function(){n.w=parseFloat(window.getComputedStyle(n.$refs.cropper).width),n.h=parseFloat(window.getComputedStyle(n.$refs.cropper).height),n.trueWidth=t.width,n.trueHeight=t.height,n.original?n.scale=1:n.scale=n.checkedMode(),n.$nextTick(function(){n.x=-(n.trueWidth-n.trueWidth*n.scale)/2+(n.w-n.trueWidth*n.scale)/2,n.y=-(n.trueHeight-n.trueHeight*n.scale)/2+(n.h-n.trueHeight*n.scale)/2,n.loading=!1,n.autoCrop&&n.goAutoCrop(),n.$emit("img-load","success"),n.$emit("imgLoad","success"),setTimeout(function(){n.showPreview()},20)})},t.onerror=function(){n.$emit("imgLoad","error"),n.$emit("img-load","error")},t.src=this.imgs},checkedMode:function(){var n=1,t=(this.trueWidth,this.trueHeight),o=this.mode.split(" ");switch(o[0]){case"contain":this.trueWidth>this.w&&(n=this.w/this.trueWidth),this.trueHeight*n>this.h&&(n=this.h/this.trueHeight);break;case"cover":(t*=n=this.w/this.trueWidth)<this.h&&(n=(t=this.h)/this.trueHeight);break;default:try{var r=o[0];if(r.search("px")!==-1&&(r=r.replace("px",""),n=parseFloat(r)/this.trueWidth),r.search("%")!==-1&&(r=r.replace("%",""),n=parseFloat(r)/100*this.w/this.trueWidth),o.length===2&&r==="auto"){var l=o[1];l.search("px")!==-1&&(l=l.replace("px",""),n=(t=parseFloat(l))/this.trueHeight),l.search("%")!==-1&&(l=l.replace("%",""),n=(t=parseFloat(l)/100*this.h)/this.trueHeight)}}catch{n=1}}return n},goAutoCrop:function(n,t){if(this.imgs!==""&&this.imgs!==null){this.clearCrop(),this.cropping=!0;var o=this.w,r=this.h;if(this.centerBox){var l=this.trueWidth*this.scale,f=this.trueHeight*this.scale;o=l<o?l:o,r=f<r?f:r}var m=n||parseFloat(this.autoCropWidth),y=t||parseFloat(this.autoCropHeight);m!==0&&y!==0||(m=.8*o,y=.8*r),m=m>o?o:m,y=y>r?r:y,this.fixed&&(y=m/this.fixedNumber[0]*this.fixedNumber[1]),y>this.h&&(m=(y=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(m,y)}},changeCrop:function(n,t){var o=this;if(this.centerBox){var r=this.getImgAxis();n>r.x2-r.x1&&(t=(n=r.x2-r.x1)/this.fixedNumber[0]*this.fixedNumber[1]),t>r.y2-r.y1&&(n=(t=r.y2-r.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=n,this.cropH=t,this.checkCropLimitSize(),this.$nextTick(function(){o.cropOffsertX=(o.w-o.cropW)/2,o.cropOffsertY=(o.h-o.cropH)/2,o.centerBox&&o.moveCrop(null,!0)})},refresh:function(){var n=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick(function(){n.checkedImg()})},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(n,t,o){n=n||this.x,t=t||this.y,o=o||this.scale;var r=!0;if(this.centerBox){var l=this.getImgAxis(n,t,o),f=this.getCropAxis();l.x1>=f.x1&&(r=!1),l.x2<=f.x2&&(r=!1),l.y1>=f.y1&&(r=!1),l.y2<=f.y2&&(r=!1)}return r}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";var n=this,t=navigator.userAgent;this.isIOS=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(o,r,l){for(var f=atob(this.toDataURL(r,l).split(",")[1]),m=f.length,y=new Uint8Array(m),x=0;x<m;x++)y[x]=f.charCodeAt(x);o(new Blob([y],{type:n.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop)}};u(1);var L=function(n,t,o,r,l,f,m,y){var x,c=typeof n=="function"?n.options:n;if(t&&(c.render=t,c.staticRenderFns=o,c._compiled=!0),r&&(c.functional=!0),f&&(c._scopeId="data-v-"+f),m?(x=function(g){(g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(g=__VUE_SSR_CONTEXT__),l&&l.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(m)},c._ssrRegister=x):l&&(x=y?function(){l.call(this,this.$root.$options.shadowRoot)}:l),x)if(c.functional){c._injectStyles=x;var h=c.render;c.render=function(g,w){return x.call(w),h(g,w)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,x):[x]}return{exports:n,options:c}}(I,d,[],!1,null,"6dae58fd",null);L.options.__file="src/vue-cropper.vue";var k=L.exports;u.d(a,"VueCropper",function(){return k});var T=function(n){n.component("VueCropper",k)};typeof window<"u"&&window.Vue&&T(window.Vue),a.default={version:"0.5.5",install:T,VueCropper:k,vueCropper:k}}])})})(U);const oe={data(){return{width:"800px",visible:!1,id:null,confirmLoading:!1,fileList:[],uploading:!1,options:{img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!0},previews:{},fullscreen:!1}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"40px"}}}},components:{VueCropper:U.exports.VueCropper},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},edit(s){this.fullscreen=!1,this.visible=!0,this.id=s},close(){this.id=null,this.visible=!1},cancelHandel(){this.close()},changeScale(s){s=s||1,this.$refs.cropper.changeScale(s)},rotateLeft(){this.$refs.cropper.rotateLeft()},rotateRight(){this.$refs.cropper.rotateRight()},beforeUpload(s){this.fileList=s;const e=new FileReader;return e.readAsDataURL(s),e.onload=()=>{this.options.img=e.result},!1},finish(s){s==="blob"?(this.uploading=!0,this.$refs.cropper.getCropBlob(e=>{const i=new window.File([e],this.fileList.name,{type:this.fileList.type}),a=new FormData;a.append("file",i),R.sysFileInfoUploadAvatar(a).then(u=>{u.success?this.updateAvatar(u.data):(this.uploading=!1,this.$message.error(u.message))})})):this.$refs.cropper.getCropData(e=>{})},updateAvatar(s){const e={id:this.id,avatar:s};W.sysUserUpdateAvatar(e).then(i=>{this.uploading=!1,i.success?(this.visible=!1,this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.$emit("ok",s)}).catch(i=>{this.$emit("ok",s)})},realTime(s){this.previews=s},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var se=function(){var e=this,i=e._self._c;return i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.modalStyle.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.cancelHandel}},[i("gd-modal-title",{attrs:{slot:"title",title:e.$i18nt("gd.account.modifyavatar","\u4FEE\u6539\u5934\u50CF"),fullscreen:e.fullscreen,buttons:[],confirmLoading:e.confirmLoading,showClose:!0,closed:"cancelHandel"},on:{changeEvent:e.doEvent},slot:"title"}),i("div",{staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body"},[i("el-row",[i("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[i("vue-cropper",{ref:"cropper",attrs:{img:e.options.img,info:!0,autoCrop:e.options.autoCrop,autoCropWidth:e.options.autoCropWidth,autoCropHeight:e.options.autoCropHeight,fixedBox:e.options.fixedBox},on:{realTime:e.realTime}})],1),i("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[i("div",{staticClass:"avatar-upload-preview"},[i("img",{style:e.previews.img,attrs:{src:e.previews.url}})])])],1),i("br"),i("el-row",[i("el-col",{attrs:{lg:3,md:3}},[i("el-upload",{attrs:{name:"file",action:"",beforeUpload:e.beforeUpload,showUploadList:!1}},[i("el-button",{staticClass:"el-icon-upload2"},[e._v(e._s(e.$i18nt("gd.account.selectPicture","\u9009\u62E9\u56FE\u7247")))])],1)],1),i("el-col",{attrs:{lg:{span:1,offset:2},md:2}},[i("el-button",{staticClass:"el-icon-plus",on:{click:function(a){return e.changeScale(1)}}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{staticClass:"el-icon-minus",on:{click:function(a){return e.changeScale(-1)}}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{staticClass:"el-icon-refresh-left",on:{click:e.rotateLeft}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{staticClass:"el-icon-refresh-right",on:{click:e.rotateRight}})],1),i("el-col",{attrs:{lg:{span:2,offset:6},md:2}},[i("el-button",{attrs:{type:"primary",loading:e.uploading},on:{click:function(a){return e.finish("blob")}}},[e._v(" "+e._s(e.$i18nt("gd.btn.save"))+" ")])],1)],1)],1)],1)},ae=[],ce=H.normalizeComponent(oe,se,ae,!1,null,"1fe51f00",null,null);const le=ce.exports;const he={props:{height:{type:Number,default:100}},name:"GdBaseSettings",components:{AvatarModal:le},data(){return{preview:{},sexData:[],langData:[{id:1,name:"\u7B80\u4F53\u4E2D\u6587",transKey:"gd.settings.chineseLanguage"},{id:2,name:"\u82F1\u8BED(\u7F8E\u56FD)",transKey:"gd.settings.englishLanguage"}],timezoneData:[],currencyData:[],option:{img:null,info:!0,size:1,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:180,autoCropHeight:180,fixedBox:!0,fixed:!0,fixedNumber:[1,1],birthdayString:""},spinning:!1,ruleForm:{},rules:{}}},computed:{getHeight(){return this.height},...H.mapGetters(["userInfo","locale","language"])},mounted(){this.initUserInfo()},methods:{changeLanguage(s){let e=this.langData.filter(i=>i.id==s)[0];this.$store.dispatch("Language",e.code)},initUserInfo(){this.spinning=!0,setTimeout(()=>{this.languageChange(),this.timezoneChange(),this.currencyChange(),this.ruleForm={birthday:this.userInfo.birthday?this.userInfo.birthday:void 0,nickName:this.userInfo.nickname,gender:this.userInfo.gender.toString(),email:this.userInfo.email,phone:this.userInfo.phone,tel:this.userInfo.tel,languageId:this.userInfo.languageid,currencyId:this.userInfo.currencyid,timezoneId:this.userInfo.timezoneid},this.birthdayString=this.userInfo.birthday,this.userInfo.avatar!=null?R.sysFileInfoPreview({id:this.userInfo.avatar}).then(s=>{this.option.img=window.URL.createObjectURL(new Blob([s]))}).catch(s=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+s.message)}):this.option.img="/avatar2.jpg",this.getSexData(),this.spinning=!1},100)},onChange(s,e){console.log(s),this.birthdayString=s},currencyChange(){V.sysCurrencyPage().then(s=>{s.success&&(this.currencyData=s.data.rows,ee.default.ls.set("currencyData",s.data.rows))})},timezoneChange(){Z.sysTimezonePage().then(s=>{s.success&&(this.timezoneData=s.data.rows)})},languageChange(){G.sysLanguagePage().then(s=>{s.success&&(this.langData=s.data.rows)})},submitUserInfo(){this.spinning||this.$refs.ruleForm.validate(s=>{s&&(this.spinning=!0,this.ruleForm.birthday=this.birthdayString,this.ruleForm.id=this.userInfo.id,W.sysUserUpdateInfo(this.ruleForm).then(e=>{if(e.success){let i=this.langData.filter(a=>a.id==this.ruleForm.languageId)[0];this.$store.dispatch("Language",i.code),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),setTimeout(()=>{this.$store.dispatch("GetInfo").then(()=>{})},500)}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message);this.spinning=!1}))})},getSexData(){this.sexData=this.$options.filters.dictData("gender")},setavatar(s){R.sysFileInfoPreview({id:s}).then(e=>{this.option.img=window.URL.createObjectURL(new Blob([e]))}).catch(e=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+e.message)}),this.$store.dispatch("GetInfo").then(()=>{})}}};var ue=function(){var e=this,i=e._self._c;return i("div",{staticClass:"account-settings-info-view",staticStyle:{height:"100px"}},[i("el-row",{attrs:{gutter:16}},[i("el-col",{attrs:{md:24,lg:16}},[i("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-form-item",{attrs:{label:e.$i18nt("gd.account.nickname","\u6635\u79F0"),prop:"nickName"}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.nickName,callback:function(a){e.$set(e.ruleForm,"nickName",a)},expression:"ruleForm.nickName"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.birthday","\u751F\u65E5"),prop:"birthday",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.onChange},model:{value:e.ruleForm.birthday,callback:function(a){e.$set(e.ruleForm,"birthday",a)},expression:"ruleForm.birthday"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.sex","\u6027\u522B"),prop:"gender",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-radio-group",{model:{value:e.ruleForm.gender,callback:function(a){e.$set(e.ruleForm,"gender",a)},expression:"ruleForm.gender"}},e._l(e.sexData,function(a,u){return i("el-radio",{key:u,attrs:{label:a.code}},[e._v(" "+e._s(a.name)+" ")])}),1)],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.phone","\u624B\u673A\u53F7"),prop:"phone",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},{pattern:/^1[3-9]\d{9}$/,message:this.$i18nt("gd.account.phoneInvalid","\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),trigger:"blur"}]}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.phone,callback:function(a){e.$set(e.ruleForm,"phone",a)},expression:"ruleForm.phone"}})],1),i("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.account.tel","\u7535\u8BDD"),prop:"tel"}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.tel,callback:function(a){e.$set(e.ruleForm,"tel",a)},expression:"ruleForm.tel"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.email","\u7535\u5B50\u90AE\u4EF6"),prop:"email",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:"blur"},{type:"email",message:e.$i18nt("gd.account.emailTip","\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!"),trigger:["blur","change"]}]}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.email,callback:function(a){e.$set(e.ruleForm,"email",a)},expression:"ruleForm.email"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.language","\u9ED8\u8BA4\u8BED\u8A00"),prop:"languageId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{select:e.changeLanguage},model:{value:e.ruleForm.languageId,callback:function(a){e.$set(e.ruleForm,"languageId",a)},expression:"ruleForm.languageId"}},e._l(e.langData,function(a,u){return i("el-option",{key:u,attrs:{value:a.id,label:a.name}})}),1)],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.currency","\u9ED8\u8BA4\u8D27\u5E01"),prop:"currencyId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.currencyId,callback:function(a){e.$set(e.ruleForm,"currencyId",a)},expression:"ruleForm.currencyId"}},e._l(e.currencyData,function(a,u){return i("el-option",{key:u,attrs:{value:a.id,label:a.name}})}),1)],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.timeZone","\u9ED8\u8BA4\u65F6\u533A"),prop:"timezoneId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.timezoneId,callback:function(a){e.$set(e.ruleForm,"timezoneId",a)},expression:"ruleForm.timezoneId"}},e._l(e.timezoneData,function(a,u){return i("el-option",{key:u,attrs:{value:a.id,label:a.name}})}),1)],1),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.submitUserInfo}},[e._v(" "+e._s(e.$i18nt("gd.account.updateInformation","\u66F4\u65B0\u57FA\u672C\u4FE1\u606F"))+" ")])],1)],1)],1),i("el-col",{style:{minHeight:"180px"},attrs:{md:24,lg:8}},[i("div",{staticClass:"ant-upload-preview",on:{click:function(a){return e.$refs.modal.edit(e.userInfo.id)}}},[i("i",{staticClass:"el-icon-upload upload-icon"}),i("div",{staticClass:"mask"},[i("i",{staticClass:"el-icon-plus"})]),i("img",{attrs:{src:e.option.img}})])])],1),i("avatar-modal",{ref:"modal",on:{ok:e.setavatar}})],1)},de=[],pe=H.normalizeComponent(he,ue,de,!1,null,"685efc26",null,null);const F=pe.exports;F.install=function(s){s.component(F.name,F)};const ge={name:"GdCustomSettings",data(){return{colorList:N.colorList,options:[],homePage:["uvgsxjpu","ujhmcamph","uwcscihbx"],account:"",echartsList:[],value:0,primaryColors:this.primaryColor,propOptions:[],propOptionsOld:[],list:null,listOptions:[],listOptionsOld:[],presentText:[]}},computed:{predefine(){let s=[];return N.colorList.forEach(e=>{s.push(e.color)}),s},...H.mapGetters(["userInfo","addRouters","theme","primaryColor","echartsColor","systemInfo"])},watch:{primaryColor(){this.primaryColors=this.primaryColor}},methods:{okColor(s){this.$store.dispatch("EchartsColor",s),this.echartsList=[...s]},getColor(){this.echartsList=[...this.echartsColor]},renew(){let s=this,e=this.homePage,i=!1;if(e.length==0&&(i=!0),e.length>1&&(i=!0),!i){s.$message.error(s.$i18nt("gd.field.replenishData","\u8BF7\u8865\u5145\u6570\u636E"));return}this.$confirm(this.$i18nt("gd.https.configThemeContent","\u662F\u5426\u66F4\u65B0\u4E2A\u4EBA\u9996\u9875\u914D\u7F6E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u5B9A\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,u,d)=>{this.renewHand(a,u,d,this.homePage)}})},renewHand(s,e,i,a){if(s!=="confirm"){i();return}let u=[],d=W.sysUserConfigTheme({configTheme:a.join(",")}).then(C=>C);u.push(d),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(u).then(C=>{i(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const $=C.filter(I=>!I.success);$.length===0?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$store.dispatch("GetInfo").then(()=>{})):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+$[0].message)})},init(){this.value=this.theme=="dark"?1:0,this.homePage=this.userInfo.configtheme?this.userInfo.configtheme.split(","):[],this.systemInfo.id?this.systemInfo:window.$systemInfo},lazyLoad(s,e){const{level:i,value:a}=s;if(this.options.length===0){this.geData().then(()=>{if(this.presentText.length<this.homePage.length){const u=this.options.filter(d=>d.code===this.homePage[0])[0];this.presentText=u?this.presentText.concat([u.label]):this.presentText}e(this.options)});return}this.getMenuListAll(a).then(u=>{if(this.presentText.length<this.homePage.length&&i===2){this.presentText=this.presentText.concat([s.label]);const C=s.children.filter($=>$.value===this.homePage[i])[0];this.presentText=C?this.presentText.concat([C.label]):this.presentText}const d=this.$refs.cascader.presentText;this.presentText.length===this.homePage.length&&d===null&&(this.$refs.cascader.presentText=this.presentText.join(" / ")),e(u)})},geData(){return K.getAppList({}).then(s=>{if(s.success){let e=s.data.map(i=>{let a=this.userInfo.apps.filter(u=>u.code==i.code)[0];if(a!=null)return i.leaf=a==null,i.value=i.code,i.label=this.$i18nt(`Dynamics.${i.transkey}`,i.name),i.loading=!1,i});return e=e.filter(i=>i!==void 0),this.options=[...e],this.listOptionsOld=JSON.stringify(e),new Promise(i=>{i()})}})},getMenuListAll(s){return Promise.all([this.getMenuList({application:s}),this.sysMenuChange({application:s})]).then(e=>{let i=e[0].data,a=e[1].data;return i.map((u,d)=>{let C=a.filter($=>$.path==u.router);return i[d].value=u.router,i[d].label=this.$i18nt(`Dynamics.${u.transkey}`,u.name),i[d].leaf=u.children.length==0,i[d].disabled=C.length==0,u.children.length==0?i[d].children=null:u.children.map(($,I)=>{let L=a.filter(k=>k.path==$.router);i[d].children[I].value=$.router,i[d].children[I].label=this.$i18nt(`Dynamics.${$.transkey}`,$.name),i[d].children[I].children=[],i[d].children[I].leaf=!0,i[d].children[I].disabled=L.length==0}),u}),i.map(u=>{u.children=u.children?u.children.filter(d=>d.disabled==!1):[]}),i})},getMenuList(s){return B.getMenuList(s).then(e=>e)},sysMenuChange(s){return B.sysMenuChange(s).then(e=>e)},onChangeCascader(s){const e=this.$refs.cascader.presentText;this.presentText=e!==null?e.split(" / "):[]},onChange(s){s?this.$store.dispatch("ToggleTheme","dark"):this.$store.dispatch("ToggleTheme","light")},async changeColor(s){const e=this,i=this.primaryColor;if(typeof s!="string")return;const a=this.$message({message:e.$i18nt("gd.theme.switchingTopics"),duration:0,iconClass:"el-icon-loading"}),u=this.getThemeCluster(s.replace("#","")),d=this.getThemeCluster(i.replace("#","")),C=(L,k)=>()=>{const T=this.getThemeCluster(this.primaryColor.replace("#","")),n=this.updateStyle(this[L],T,u);let t=document.getElementById(k);t||(t=document.createElement("style"),t.setAttribute("id",k),document.head.appendChild(t)),t.innerText=n};this.chalk||await Promise.resolve().then(()=>require("./element-theme-chalk.dee12271.js")).then(L=>{this.chalk=L.default}),C("chalk","chalk-style")(),[].slice.call(document.querySelectorAll("style")).filter(L=>{const k=L.innerText;return new RegExp(i,"i").test(k)&&!/Chalk Variables/.test(k)}).forEach(L=>{const{innerText:k}=L;typeof k=="string"&&(L.innerText=this.updateStyle(k,d,u))}),this.$store.dispatch("ToggleColor",s),window.document.body.style=`--color:${s}`,this.$nextTick(()=>{setTimeout(()=>{a.close()},200)})},updateStyle(s,e,i){let a=s;return e.forEach((u,d)=>{a=a.replace(new RegExp(u,"ig"),i[d])}),a},getThemeCluster(s){const e=(u,d)=>{let C=parseInt(u.slice(0,2),16),$=parseInt(u.slice(2,4),16),I=parseInt(u.slice(4,6),16);return d===0?[C,$,I].join(","):(C+=Math.round(d*(255-C)),$+=Math.round(d*(255-$)),I+=Math.round(d*(255-I)),C=C.toString(16),$=$.toString(16),I=I.toString(16),`#${C}${$}${I}`)},i=(u,d)=>{let C=parseInt(u.slice(0,2),16),$=parseInt(u.slice(2,4),16),I=parseInt(u.slice(4,6),16);return C=Math.round((1-d)*C),$=Math.round((1-d)*$),I=Math.round((1-d)*I),C=C.toString(16),$=$.toString(16),I=I.toString(16),`#${C}${$}${I}`},a=[s];for(let u=0;u<=9;u++)a.push(e(s,Number((u/10).toFixed(2))));return a.push(i(s,.1)),a},traverse(s,e){let i=null;const a=u=>(u=u.filter((d,C)=>(d.children&&d.children.length>0&&a(d.children),d.value==s&&(i={...d}),!0)),u);return a(this.propOptions),i}},mounted(){this.getColor(),this.init(),this.primaryColor&&(this.primaryColors=this.primaryColor)}};var fe=function(){var e=this,i=e._self._c;return i("div",{staticStyle:{"padding-top":"12px"}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.overallStyle","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.overallStyleTip","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("el-switch",{attrs:{"active-text":e.$i18nt("gd.settings.darkness","\u767D\u8272"),"active-color":e.primaryColor,"inactive-text":e.$i18nt("gd.settings.white","\u6697\u8272"),"active-value":1,"inactive-value":0},on:{change:e.onChange},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}})],1)])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.theme","\u4E3B\u9898\u8272")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.themeTip","\u9875\u9762\u4E3B\u9898\u914D\u8272"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("el-color-picker",{ref:"colorPicker",staticClass:"theme-picker",attrs:{size:"small",predefine:e.predefine,"popper-class":"theme-picker-dropdown"},on:{change:e.changeColor},model:{value:e.primaryColors,callback:function(a){e.primaryColors=a},expression:"primaryColors"}})],1)])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.echartsColor","\u56FE\u8868\u8272")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.echartsColorStyle","\u56FE\u8868\u98CE\u683C\u914D\u8272"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-flex"},[e._l(e.echartsList,function(a,u){return[i("el-tooltip",{staticClass:"setting-drawer-theme-color-colorBlock",attrs:{content:a===0?e.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"):a}},[i("el-tag",{attrs:{color:a===0?e.primaryColor:a}})],1)]}),i("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:function(a){return e.$refs.echartsTheme.open()}}},[e._v(" "+e._s(e.$i18nt("gd.btn.edit","\u7F16\u8F91"))+" ")])],2)])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",[e._v(e._s(e.$i18nt("gd.settings.homepage","\u4E2A\u4EBA\u9996\u9875")))])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.homepageTip","\u914D\u7F6E\u540E\u7528\u6237\u767B\u5F55\u76F4\u63A5\u8FDB\u5165\u4E2A\u4EBA\u9996\u9875"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-flex"},[i("el-cascader",{ref:"cascader",staticStyle:{width:"240px"},attrs:{clearable:"",props:{lazy:!0,lazyLoad:e.lazyLoad}},on:{change:e.onChangeCascader},model:{value:e.homePage,callback:function(a){e.homePage=a},expression:"homePage"}}),i("span",{staticClass:"active-color",staticStyle:{"margin-left":"10px",cursor:"pointer"},on:{click:e.renew}},[e._v(" "+e._s(e.$i18nt("gd.btn.update","\u66F4\u65B0"))+" ")])],1)])],1),i("el-divider"),i("gd-color-editor",{ref:"echartsTheme",on:{ok:e.okColor}})],1)},me=[],ve=H.normalizeComponent(ge,fe,me,!1,null,"b784faab",null,null);const P=ve.exports;P.install=function(s){s.component(P.name,P)};const we={props:{isShow:{type:Boolean,default(){return!1}}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],confirmLoading:!1,visible:!1,userId:"",width:"600px",min:0,messageTip:"",messageTipErr:"",lenMax:0,lenMin:0,maskValue:"",pattern:null,fullscreen:!1,disabled:!0,code:"",num:0,ruleForm:{}}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"40px"}}},title(){return this.num==1?this.$i18nt("gd.account.changePaw","\u4FEE\u6539\u5BC6\u7801"):this.$i18nt("gd.account.userBinding","\u7528\u6237\u7ED1\u5B9A")},...H.mapGetters(["labelPosition"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(s,e,i){this.fullscreen=!1,this.userId=s,this.code=e,this.num=i,this.num==1?this.getConfigInfo():this.$nextTick(()=>{this.formUpdPwd.setFieldsValue({account:this.userId})}),this.visible=!0},getConfigInfo(s){W.getPasswordRules().then(e=>{this.min=parseInt(e.data.lengthrule.value),this.lenMin=parseInt(e.data.lengthrule.value),this.messageTip=e.data.lengthrule.remark,this.maskValue=e.data.combinationrule.value,this.lenMax=16,this.maskValue.includes("AL")&&this.maskValue.includes("NU")&&this.maskValue.includes("SC")?this.pattern=new RegExp(`^(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])(?=.*[~!@#$%^&*])[\\da-zA-Z~!@#$%^&*]{${this.lenMin},${this.lenMax}}$`):this.maskValue.includes("AL")&&this.maskValue.includes("NU")?this.pattern=new RegExp("(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])"):this.maskValue.includes("AL")&&this.maskValue.includes("SC")?this.pattern=new RegExp("(?=.*[~!@#$%^&*])(?=.*?[a-z])(?=.*?[A-Z]))"):this.maskValue.includes("NU")&&this.maskValue.includes("SC")?this.pattern=new RegExp("(?=.*\\d)(?=.*[~!@#$%^&*])"):this.maskValue.includes("AL")?this.pattern=new RegExp("^(?=.*?[a-z])(?=.*?[A-Z])"):this.maskValue.includes("NU")?this.pattern=new RegExp("\\d"):this.maskValue.includes("SC")&&(this.pattern=new RegExp("[^a-zA-Z0-9]")),this.messageTipErr=e.data.combinationrule.remark})},handleSubmit(){this.$refs.ruleForm.validate(s=>{if(s){this.confirmLoading=!0;let e;this.num==1?e={accountName:this.userId,passWord:this.ruleForm.password,newPassword:this.ruleForm.newPassword}:e={account:this.ruleForm.account,password:this.ruleForm.password,corpCode:this.code},(this.num==1?W.updatePwdByAccount:W.BindWechatWorkAccountByCode)(e).then(a=>{a.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message)}).finally(a=>{this.confirmLoading=!1})}})},handleCancel(){this.$refs.ruleForm.resetFields(),this.visible=!1},compareToFirstPassword(s,e,i){e&&e!==this.ruleForm.newPassword?i(this.$i18nt("gd.account.repeatPawTiperr"," \u8BF7\u786E\u8BA4\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u7684\u4E00\u81F4\u6027")):i()},oldtPassword(s,e,i){e&&e===this.ruleForm.password?i(this.$i18nt("gd.account.repeatPawTipodl","\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")):i()},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var Ce=function(){var e=this,i=e._self._c;return i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.modalStyle.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent},slot:"title"}),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body",staticStyle:{margin:"10px 10px 10px"}},[i("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":e.labelPosition},nativeOn:{submit:function(a){a.preventDefault()}}},[e.num==1?i("div",[i("el-form-item",{attrs:{label:e.$i18nt("gd.account.originalPaw","\u539F\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input")}]}},[i("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.newPaw","\u65B0\u5BC6\u7801"),prop:"newPassword",rules:[{required:!0,min:e.min,message:e.messageTip},{pattern:e.pattern,message:e.messageTipErr},{validator:e.oldtPassword}]}},[i("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.newPassword,callback:function(a){e.$set(e.ruleForm,"newPassword",a)},expression:"ruleForm.newPassword"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.repeatPaw","\u91CD\u590D\u65B0\u5BC6\u7801"),prop:"confirm",rules:[{required:!0,message:e.$i18nt("gd.account.repeatPawTip","\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801")},{validator:e.compareToFirstPassword}]}},[i("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.confirm,callback:function(a){e.$set(e.ruleForm,"confirm",a)},expression:"ruleForm.confirm"}})],1)],1):i("div",[i("el-form-item",{attrs:{label:e.$i18nt("gd.account.loginID","\u8D26\u53F7"),prop:"account",rules:[{required:!0,message:this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.login.account","\u8BF7\u8F93\u5165\u8D26\u53F7"),disabled:e.disabled},model:{value:e.ruleForm.account,callback:function(a){e.$set(e.ruleForm,"account",a)},expression:"ruleForm.account"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.login.password","\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[i("el-input",{attrs:{maxlength:18,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),"show-password":""},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1)],1)])],1)],1)},xe=[],be=H.normalizeComponent(we,Ce,xe,!1,null,"1d4e1c11",null,null);const D=be.exports;const ye={props:{isClear:{type:Number,default:1}},components:{UpdPwd:D},data(){return{visible:!1,qrCodeUrl:"//login.work.weixin.qq.com/wwlogin/sso/qrcode?key=ae88c122560120a2",code:"",logTitle:"",num:1,wwLogin:null,confirmLoading:!1,isInitialize:null,pwdExpiration:"",setDate:void 0,currentTime:void 0,diff:void 0,diffDate:void 0,state:"",isWeComLogin:!1,wxUserId:null,appId:"",agentId:"",redirectURL:"",titleWidth:"504px",num1:0}},computed:{style(){return{"--color":this.primaryColor}},titleTip(){return this.num==1?$i18nt("gd.account.loading"):""},...H.mapGetters(["userInfo","language","primaryColor"])},mounted(){},methods:{open(s,e){this.num=e,this.visible=!0,this.titleWidth=this.language=="zh_CN"?350+"px":504+"px",this.num==1&&this.getWeChat(s)},getWeChat(s){let e=this;s.data.forEach((i,a)=>{i.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(e.appId=i.value),i.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(e.agentId=i.value),i.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(e.redirectURL=i.value)}),setTimeout(()=>{e.wwLogin=ww.createWWLoginPanel({el:"#wx_qrcode",params:{login_type:"CorpApp",appid:e.appId,agentid:e.agentId,redirect_uri:e.redirectURL,state:"loginState",redirect_type:"callback",panel_size:e.language=="zh_CN"?"small":"middle",lang:e.language=="zh_CN"?"zh":"en"},onCheckWeComLogin({isWeComLogin:i}){e.isWeComLogin=i,e.num1=e.isWeComLogin==!0?1:0},onLoginSuccess({code:i}){e.code=i,e.$refs.updPwd.open(e.userInfo.account,i,2),e.visible=!1},onLoginFail(i){}})},500)},handleCancel(){this.confirmLoading=!1,this.visible=!1,this.$refs.wx_qrcode.innerHTML=""}}};var _e=function(){var e=this,i=e._self._c;return i("div",[i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",attrs:{visible:e.visible,width:e.titleWidth,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[i("div",{staticClass:"main",style:e.style},[e.num==1?i("div",[i("div",{ref:"wx_qrcode",style:e.num1==0?"height: 290px;":"height: 290px",attrs:{id:"wx_qrcode"}}),i("div",{class:e.num1==0?"div_top":"div_topno"}),i("div",{class:e.num1==0?"div_bottom":""})]):e._e()])]),i("upd-pwd",{ref:"updPwd"})],1)},$e=[],Ie=H.normalizeComponent(ye,_e,$e,!1,null,"55ede8aa",null,null);const Se=Ie.exports;const ke={name:"GdSecuritySettings",components:{UpdPwd:D,weChatBind:Se},data(){return{isShow:!1,num:0,wxUserId:null,obj:{},appId:"",agentId:"",redirectURL:"",enterpriseNum:0,bindTitle:"\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1",dicsTitle:""}},watch:{language(s,e){this.changeLanguage()},userInfo(s,e){this.changUserInfo()}},created(){this.init()},mounted(){},computed:{...H.mapGetters(["userInfo","language"])},methods:{updPwd(){this.$refs.updPwd.open(this.userInfo.account,null,1)},bind(){this.$refs.weChatBind.open(this.obj,1)},getConfigInfo(){let s={code:"GDS_ENTERPRISE_WECHAT_LOGIN"};W.getConfigInfoByCode(s).then(e=>{this.enterpriseNum=e.data.value})},getConfigsBy(){let s={strCodes:"GDS_ENTERPRISE_WECHAT_CropID,GDS_ENTERPRISE_WECHAT_AgentId,GDS_ENTERPRISE_WECHAT_Redirect_URL"};W.getConfigsByCode(s).then(e=>{e.success&&(this.obj=e)})},getData(){J.getLoginUser().then(s=>{this.wxuserid=s.data.wxuserid})},changeLanguage(){this.init()},changUserInfo(){this.init()},init(){this.wxuserid=this.userInfo.wxuserid,this.getConfigInfo(),this.getData(),this.getConfigsBy()},getWeChat(s,e){let i=this;s.data.forEach((a,u)=>{a.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(i.appId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(i.agentId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(i.redirectURL=a.value)}),setTimeout(()=>{i.wwLogin=ww.createWWLoginPanel({el:"#wx_qrcode",params:{login_type:"CorpApp",appid:i.appId,agentid:i.agentId,redirect_uri:i.redirectURL,state:"loginState",redirect_type:"callback",panel_size:"middle",lang:e=="zh_CN"?"zh":"en"},onCheckWeComLogin({isWeComLogin:a}){console.log(a)},onLoginSuccess({code:a}){i.code=a,i.$refs.updPwd.open(i.userInfo.account,a,2),console.log(a)},onLoginFail(a){}})},500)},bindCode(s){s==1||s==0?this.getData():s==-1?this.getConfigsBy():s==2&&this.getConfigsBy()}}};var Le=function(){var e=this,i=e._self._c;return i("div",{staticStyle:{"padding-top":"12px"}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"grid-content bg-purple"},[e._v(" "+e._s(e.$i18nt("gd.account.passWord","\u8D26\u6237\u5BC6\u7801"))+" ")])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, .45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.strength","\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6"))+":"+e._s(e.$i18nt("gd.account.strong","\u5F3A"))+" ")])]),i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.updPwd}},[e._v(" "+e._s(e.$i18nt("gd.account.changePaw","\u4FEE\u6539\u5BC6\u7801"))+" ")])])])],1),i("el-divider"),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"grid-content bd",staticStyle:{color:"rgba(0, 0, 0, .45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.bindenterpriseWechat","\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"))+" ")])])],1),i("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("div",{staticClass:"grid-content state"},[e._v(" "+e._s(e.$i18nt("gd.account.currentState","\u5F53\u524D\u72B6\u6001"))+":"+e._s(e.wxUserId==null||e.wxUserId==""?e.$i18nt("gd.state.no","\u5426"):e.$i18nt("gd.state.yes","\u662F"))+" ")])]),e.wxUserId==null||e.wxUserId==""?i("el-col",{attrs:{span:16}},[i("div",{staticClass:"grid-content paw grid-flex"},[i("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.bind}},[e._v(e._s(e.$i18nt("gd.account.bind","\u7ED1\u5B9A")))])])]):e._e()],1),i("upd-pwd",{ref:"updPwd",attrs:{isShow:e.isShow},on:{bindCode:e.bindCode}}),i("weChatBind",{ref:"weChatBind",on:{bindCode:e.bindCode}})],1)},Te=[],Ae=H.normalizeComponent(ke,Le,Te,!1,null,"bab5209a",null,null);const Y=Ae.exports;Y.install=function(s){s.component(Y.name,Y)};exports.GDpackage=X;exports.GDpackage$1=F;exports.GDpackage$2=Y;exports.GDpackage$3=P;
|
|
216
|
+
</div>`),this.$emit("realTime",l),this.$emit("real-time",l)},reload:function(){var n=this,t=new Image;t.onload=function(){n.w=parseFloat(window.getComputedStyle(n.$refs.cropper).width),n.h=parseFloat(window.getComputedStyle(n.$refs.cropper).height),n.trueWidth=t.width,n.trueHeight=t.height,n.original?n.scale=1:n.scale=n.checkedMode(),n.$nextTick(function(){n.x=-(n.trueWidth-n.trueWidth*n.scale)/2+(n.w-n.trueWidth*n.scale)/2,n.y=-(n.trueHeight-n.trueHeight*n.scale)/2+(n.h-n.trueHeight*n.scale)/2,n.loading=!1,n.autoCrop&&n.goAutoCrop(),n.$emit("img-load","success"),n.$emit("imgLoad","success"),setTimeout(function(){n.showPreview()},20)})},t.onerror=function(){n.$emit("imgLoad","error"),n.$emit("img-load","error")},t.src=this.imgs},checkedMode:function(){var n=1,t=(this.trueWidth,this.trueHeight),o=this.mode.split(" ");switch(o[0]){case"contain":this.trueWidth>this.w&&(n=this.w/this.trueWidth),this.trueHeight*n>this.h&&(n=this.h/this.trueHeight);break;case"cover":(t*=n=this.w/this.trueWidth)<this.h&&(n=(t=this.h)/this.trueHeight);break;default:try{var r=o[0];if(r.search("px")!==-1&&(r=r.replace("px",""),n=parseFloat(r)/this.trueWidth),r.search("%")!==-1&&(r=r.replace("%",""),n=parseFloat(r)/100*this.w/this.trueWidth),o.length===2&&r==="auto"){var l=o[1];l.search("px")!==-1&&(l=l.replace("px",""),n=(t=parseFloat(l))/this.trueHeight),l.search("%")!==-1&&(l=l.replace("%",""),n=(t=parseFloat(l)/100*this.h)/this.trueHeight)}}catch{n=1}}return n},goAutoCrop:function(n,t){if(this.imgs!==""&&this.imgs!==null){this.clearCrop(),this.cropping=!0;var o=this.w,r=this.h;if(this.centerBox){var l=this.trueWidth*this.scale,f=this.trueHeight*this.scale;o=l<o?l:o,r=f<r?f:r}var m=n||parseFloat(this.autoCropWidth),y=t||parseFloat(this.autoCropHeight);m!==0&&y!==0||(m=.8*o,y=.8*r),m=m>o?o:m,y=y>r?r:y,this.fixed&&(y=m/this.fixedNumber[0]*this.fixedNumber[1]),y>this.h&&(m=(y=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(m,y)}},changeCrop:function(n,t){var o=this;if(this.centerBox){var r=this.getImgAxis();n>r.x2-r.x1&&(t=(n=r.x2-r.x1)/this.fixedNumber[0]*this.fixedNumber[1]),t>r.y2-r.y1&&(n=(t=r.y2-r.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=n,this.cropH=t,this.checkCropLimitSize(),this.$nextTick(function(){o.cropOffsertX=(o.w-o.cropW)/2,o.cropOffsertY=(o.h-o.cropH)/2,o.centerBox&&o.moveCrop(null,!0)})},refresh:function(){var n=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick(function(){n.checkedImg()})},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(n,t,o){n=n||this.x,t=t||this.y,o=o||this.scale;var r=!0;if(this.centerBox){var l=this.getImgAxis(n,t,o),f=this.getCropAxis();l.x1>=f.x1&&(r=!1),l.x2<=f.x2&&(r=!1),l.y1>=f.y1&&(r=!1),l.y2<=f.y2&&(r=!1)}return r}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";var n=this,t=navigator.userAgent;this.isIOS=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(o,r,l){for(var f=atob(this.toDataURL(r,l).split(",")[1]),m=f.length,y=new Uint8Array(m),x=0;x<m;x++)y[x]=f.charCodeAt(x);o(new Blob([y],{type:n.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop)}};u(1);var L=function(n,t,o,r,l,f,m,y){var x,c=typeof n=="function"?n.options:n;if(t&&(c.render=t,c.staticRenderFns=o,c._compiled=!0),r&&(c.functional=!0),f&&(c._scopeId="data-v-"+f),m?(x=function(g){(g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(g=__VUE_SSR_CONTEXT__),l&&l.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(m)},c._ssrRegister=x):l&&(x=y?function(){l.call(this,this.$root.$options.shadowRoot)}:l),x)if(c.functional){c._injectStyles=x;var h=c.render;c.render=function(g,w){return x.call(w),h(g,w)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,x):[x]}return{exports:n,options:c}}(S,d,[],!1,null,"6dae58fd",null);L.options.__file="src/vue-cropper.vue";var k=L.exports;u.d(a,"VueCropper",function(){return k});var T=function(n){n.component("VueCropper",k)};typeof window<"u"&&window.Vue&&T(window.Vue),a.default={version:"0.5.5",install:T,VueCropper:k,vueCropper:k}}])})})(U);const ve={data(){return{width:"800px",visible:!1,id:null,confirmLoading:!1,fileList:[],uploading:!1,options:{img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!0},previews:{},fullscreen:!1}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"40px"}}}},components:{VueCropper:U.exports.VueCropper},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},edit(s){this.fullscreen=!1,this.visible=!0,this.id=s},close(){this.id=null,this.visible=!1},cancelHandel(){this.close()},changeScale(s){s=s||1,this.$refs.cropper.changeScale(s)},rotateLeft(){this.$refs.cropper.rotateLeft()},rotateRight(){this.$refs.cropper.rotateRight()},beforeUpload(s){this.fileList=s;const e=new FileReader;return e.readAsDataURL(s),e.onload=()=>{this.options.img=e.result},!1},finish(s){s==="blob"?(this.uploading=!0,this.$refs.cropper.getCropBlob(e=>{const i=new window.File([e],this.fileList.name,{type:this.fileList.type}),a=new FormData;a.append("file",i),z.sysFileInfoUploadAvatar(a).then(u=>{u.success?this.updateAvatar(u.data):(this.uploading=!1,this.$message.error(u.message))})})):this.$refs.cropper.getCropData(e=>{})},updateAvatar(s){const e={id:this.id,avatar:s};W.sysUserUpdateAvatar(e).then(i=>{this.uploading=!1,i.success?(this.visible=!1,this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.$emit("ok",s)}).catch(i=>{this.$emit("ok",s)})},realTime(s){this.previews=s},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var we=function(){var e=this,i=e._self._c;return i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.modalStyle.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.cancelHandel}},[i("gd-modal-title",{attrs:{slot:"title",title:e.$i18nt("gd.account.modifyavatar","\u4FEE\u6539\u5934\u50CF"),fullscreen:e.fullscreen,buttons:[],confirmLoading:e.confirmLoading,showClose:!0,closed:"cancelHandel"},on:{changeEvent:e.doEvent},slot:"title"}),i("div",{staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body"},[i("el-row",[i("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[i("vue-cropper",{ref:"cropper",attrs:{img:e.options.img,info:!0,autoCrop:e.options.autoCrop,autoCropWidth:e.options.autoCropWidth,autoCropHeight:e.options.autoCropHeight,fixedBox:e.options.fixedBox},on:{realTime:e.realTime}})],1),i("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[i("div",{staticClass:"avatar-upload-preview"},[i("img",{style:e.previews.img,attrs:{src:e.previews.url}})])])],1),i("br"),i("el-row",[i("el-col",{attrs:{lg:3,md:3}},[i("el-upload",{attrs:{name:"file",action:"",beforeUpload:e.beforeUpload,showUploadList:!1}},[i("el-button",{staticClass:"el-icon-upload2"},[e._v(e._s(e.$i18nt("gd.account.selectPicture","\u9009\u62E9\u56FE\u7247")))])],1)],1),i("el-col",{attrs:{lg:{span:1,offset:2},md:2}},[i("el-button",{staticClass:"el-icon-plus",on:{click:function(a){return e.changeScale(1)}}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{staticClass:"el-icon-minus",on:{click:function(a){return e.changeScale(-1)}}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{staticClass:"el-icon-refresh-left",on:{click:e.rotateLeft}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{staticClass:"el-icon-refresh-right",on:{click:e.rotateRight}})],1),i("el-col",{attrs:{lg:{span:2,offset:6},md:2}},[i("el-button",{attrs:{type:"primary",loading:e.uploading},on:{click:function(a){return e.finish("blob")}}},[e._v(" "+e._s(e.$i18nt("gd.btn.save"))+" ")])],1)],1)],1)],1)},Ce=[],xe=H.normalizeComponent(ve,we,Ce,!1,null,"1fe51f00",null,null);const be=xe.exports,ye=Object.freeze(Object.defineProperty({__proto__:null,default:be},Symbol.toStringTag,{value:"Module"}));const _e={props:{isShow:{type:Boolean,default(){return!1}}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],confirmLoading:!1,visible:!1,userId:"",width:"600px",min:0,messageTip:"",messageTipErr:"",lenMax:0,lenMin:0,maskValue:"",pattern:null,fullscreen:!1,disabled:!0,code:"",num:0,ruleForm:{}}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"40px"}}},title(){return this.num==1?this.$i18nt("gd.account.changePaw","\u4FEE\u6539\u5BC6\u7801"):this.$i18nt("gd.account.userBinding","\u7528\u6237\u7ED1\u5B9A")},...H.mapGetters(["labelPosition"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(s,e,i){this.fullscreen=!1,this.userId=s,this.code=e,this.num=i,this.num==1?this.getConfigInfo():this.$nextTick(()=>{this.formUpdPwd.setFieldsValue({account:this.userId})}),this.visible=!0},getConfigInfo(s){W.getPasswordRules().then(e=>{this.min=parseInt(e.data.lengthrule.value),this.lenMin=parseInt(e.data.lengthrule.value),this.messageTip=e.data.lengthrule.remark,this.maskValue=e.data.combinationrule.value,this.lenMax=16,this.maskValue.includes("AL")&&this.maskValue.includes("NU")&&this.maskValue.includes("SC")?this.pattern=new RegExp(`^(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])(?=.*[~!@#$%^&*])[\\da-zA-Z~!@#$%^&*]{${this.lenMin},${this.lenMax}}$`):this.maskValue.includes("AL")&&this.maskValue.includes("NU")?this.pattern=new RegExp("(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])"):this.maskValue.includes("AL")&&this.maskValue.includes("SC")?this.pattern=new RegExp("(?=.*[~!@#$%^&*])(?=.*?[a-z])(?=.*?[A-Z]))"):this.maskValue.includes("NU")&&this.maskValue.includes("SC")?this.pattern=new RegExp("(?=.*\\d)(?=.*[~!@#$%^&*])"):this.maskValue.includes("AL")?this.pattern=new RegExp("^(?=.*?[a-z])(?=.*?[A-Z])"):this.maskValue.includes("NU")?this.pattern=new RegExp("\\d"):this.maskValue.includes("SC")&&(this.pattern=new RegExp("[^a-zA-Z0-9]")),this.messageTipErr=e.data.combinationrule.remark})},handleSubmit(){this.$refs.ruleForm.validate(s=>{if(s){this.confirmLoading=!0;let e;this.num==1?e={accountName:this.userId,passWord:this.ruleForm.password,newPassword:this.ruleForm.newPassword}:e={account:this.ruleForm.account,password:this.ruleForm.password,corpCode:this.code},(this.num==1?W.updatePwdByAccount:W.BindWechatWorkAccountByCode)(e).then(a=>{a.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message)}).finally(a=>{this.confirmLoading=!1})}})},handleCancel(){this.$refs.ruleForm.resetFields(),this.visible=!1},compareToFirstPassword(s,e,i){e&&e!==this.ruleForm.newPassword?i(this.$i18nt("gd.account.repeatPawTiperr"," \u8BF7\u786E\u8BA4\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u7684\u4E00\u81F4\u6027")):i()},oldtPassword(s,e,i){e&&e===this.ruleForm.password?i(this.$i18nt("gd.account.repeatPawTipodl","\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")):i()},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var $e=function(){var e=this,i=e._self._c;return i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.modalStyle.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[i("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent},slot:"title"}),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body",staticStyle:{margin:"10px 10px 10px"}},[i("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":e.labelPosition},nativeOn:{submit:function(a){a.preventDefault()}}},[e.num==1?i("div",[i("el-form-item",{attrs:{label:e.$i18nt("gd.account.originalPaw","\u539F\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input")}]}},[i("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.newPaw","\u65B0\u5BC6\u7801"),prop:"newPassword",rules:[{required:!0,min:e.min,message:e.messageTip},{pattern:e.pattern,message:e.messageTipErr},{validator:e.oldtPassword}]}},[i("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.newPassword,callback:function(a){e.$set(e.ruleForm,"newPassword",a)},expression:"ruleForm.newPassword"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.account.repeatPaw","\u91CD\u590D\u65B0\u5BC6\u7801"),prop:"confirm",rules:[{required:!0,message:e.$i18nt("gd.account.repeatPawTip","\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801")},{validator:e.compareToFirstPassword}]}},[i("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.confirm,callback:function(a){e.$set(e.ruleForm,"confirm",a)},expression:"ruleForm.confirm"}})],1)],1):i("div",[i("el-form-item",{attrs:{label:e.$i18nt("gd.account.loginID","\u8D26\u53F7"),prop:"account",rules:[{required:!0,message:this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[i("el-input",{attrs:{placeholder:e.$i18nt("gd.login.account","\u8BF7\u8F93\u5165\u8D26\u53F7"),disabled:e.disabled},model:{value:e.ruleForm.account,callback:function(a){e.$set(e.ruleForm,"account",a)},expression:"ruleForm.account"}})],1),i("el-form-item",{attrs:{label:e.$i18nt("gd.login.password","\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[i("el-input",{attrs:{maxlength:18,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),"show-password":""},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1)],1)])],1)],1)},Se=[],Ie=H.normalizeComponent(_e,$e,Se,!1,null,"1d4e1c11",null,null);const D=Ie.exports,ke=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"}));const Le={props:{isClear:{type:Number,default:1}},components:{UpdPwd:D},data(){return{visible:!1,qrCodeUrl:"//login.work.weixin.qq.com/wwlogin/sso/qrcode?key=ae88c122560120a2",code:"",logTitle:"",num:1,wwLogin:null,confirmLoading:!1,isInitialize:null,pwdExpiration:"",setDate:void 0,currentTime:void 0,diff:void 0,diffDate:void 0,state:"",isWeComLogin:!1,wxUserId:null,appId:"",agentId:"",redirectURL:"",titleWidth:"504px",num1:0}},computed:{style(){return{"--color":this.primaryColor}},titleTip(){return this.num==1?$i18nt("gd.account.loading"):""},...H.mapGetters(["userInfo","language","primaryColor"])},mounted(){},methods:{open(s,e){this.num=e,this.visible=!0,this.titleWidth=this.language=="zh_CN"?350+"px":504+"px",this.num==1&&this.getWeChat(s)},getWeChat(s){let e=this;s.data.forEach((i,a)=>{i.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(e.appId=i.value),i.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(e.agentId=i.value),i.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(e.redirectURL=i.value)}),setTimeout(()=>{e.wwLogin=ww.createWWLoginPanel({el:"#wx_qrcode",params:{login_type:"CorpApp",appid:e.appId,agentid:e.agentId,redirect_uri:e.redirectURL,state:"loginState",redirect_type:"callback",panel_size:e.language=="zh_CN"?"small":"middle",lang:e.language=="zh_CN"?"zh":"en"},onCheckWeComLogin({isWeComLogin:i}){e.isWeComLogin=i,e.num1=e.isWeComLogin==!0?1:0},onLoginSuccess({code:i}){e.code=i,e.$refs.updPwd.open(e.userInfo.account,i,2),e.visible=!1},onLoginFail(i){}})},500)},handleCancel(){this.confirmLoading=!1,this.visible=!1,this.$refs.wx_qrcode.innerHTML=""}}};var Te=function(){var e=this,i=e._self._c;return i("div",[i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",attrs:{visible:e.visible,width:e.titleWidth,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[i("div",{staticClass:"main",style:e.style},[e.num==1?i("div",[i("div",{ref:"wx_qrcode",style:e.num1==0?"height: 290px;":"height: 290px",attrs:{id:"wx_qrcode"}}),i("div",{class:e.num1==0?"div_top":"div_topno"}),i("div",{class:e.num1==0?"div_bottom":""})]):e._e()])]),i("upd-pwd",{ref:"updPwd"})],1)},Ae=[],Ee=H.normalizeComponent(Le,Te,Ae,!1,null,"55ede8aa",null,null);const Oe=Ee.exports,He=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=P;exports.GDpackage$1=X;exports.GDpackage$2=Y;exports.GDpackage$3=F;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as i, n as d } from "./components.chartbi.
|
|
1
|
+
import { m as i, n as d } from "./components.chartbi.7356b244.mjs";
|
|
2
2
|
import { s as c, a as u, b as g, c as p } from "./http.configmanage.c23c7fa8.mjs";
|
|
3
3
|
import { t as f } from "./utils.mixins.js.be01e599.mjs";
|
|
4
4
|
const h = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const d=require("./components.chartbi.
|
|
1
|
+
"use strict";const d=require("./components.chartbi.13a8a7b5.js"),l=require("./http.configmanage.6cfb8ae7.js"),c=require("./utils.mixins.js.750ca50e.js"),u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.sysConfig.name",prop:"name",label:"\u53C2\u6570\u540D\u79F0",width:"280",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.sysConfig.code",prop:"code",width:"280",label:"\u552F\u4E00\u7F16\u7801",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.sysConfig.value",prop:"value",width:"260",label:"\u53C2\u6570\u503C",align:"left"},{transKey:"gd.sysConfig.groupCode",prop:"groupcode",label:"\u6240\u5C5E\u5206\u7C7B",width:"160",type:"slot",slotType:"groupcode",align:"left",showOverflowTooltip:!0},{transKey:"gd.sysConfig.remark",prop:"remark",width:"260",label:"\u5907\u6CE8",align:"left"}],formColumns:[{transKey:"gd.sysConfig.name",effectType:"input",prop:"name",label:"\u53C2\u6570\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.code",effectType:"input",prop:"code",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.systemParameter",prop:"sysflag",label:"\u7CFB\u7EDF\u53C2\u6570",effectType:"radio",disabled:!1,dictData:[{name:"\u662F",code:"Y",transKey:"placeholder.yes",prefix:"gd"},{name:"\u5426",code:"N",transKey:"placeholder.no",prefix:"gd"}],rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.groupCode",effectType:"select",prop:"groupcode",label:"\u6240\u5C5E\u5206\u7C7B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"consts_type",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.sysConfig.value",effectType:"input",prop:"value",label:"\u53C2\u6570\u503C",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysConfig:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysConfig:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysConfig:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.sysConfig.name",effectType:"input",prop:"name",label:"\u53C2\u6570\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.sysConfig.code",effectType:"input",prop:"code",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.sysConfig.groupCode",prop:"groupcode",label:"\u6240\u5C5E\u5206\u7C7B",effectType:"select",dictTypeCode:"consts_type",rules:[]}]}}};const g={name:"GdConfig",props:{height:{type:Number,default:100}},mixins:[c.tablesFilter,u],data(){return{selectedRowKeys:[],selectedRows:[],transKey:"gd.btn.add",formLoading:!1,currentNode:null,loadData:t=>l.sysConfigPage(Object.assign(t,this.queryParam)).then(e=>e.data),queryParam:{},sysFlag:{}}},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(t=>(["\u552F\u4E00\u7F16\u7801","\u6240\u5C5E\u5206\u7C7B","\u7CFB\u7EDF\u53C2\u6570"].includes(t.label)&&(t.disabled=this.sysFlag.sysflag==="Y"),t))},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},mounted(){},methods:{onSelectChange(t,e){this.selectedRows=e,this.selectedRowKeys=t},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.sysFlag=t,this.$refs.editForm.open(Object.assign({...t},{groupcode:String(t.groupcode)}))},saveQueries(t){this.queryParam=t,this.refresh()},add(){this.transKey="gd.btn.add",this.sysFlag={},this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:t,record:e,btn:s},r,a){this.formLoading=!0,(e?l.sysConfigEdit:l.sysConfigAdd)(t).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let r=[];this.selectedRows.forEach(a=>{let o=l.sysConfigDelete(a).then(n=>n);r.push(o)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(a=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const o=a.filter(n=>!n.success);o.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o[0].message),this.refresh()})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var p=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"code",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"code",row:a}})]}},{key:"value",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"value",row:a}})]}},{key:"remark",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{key:"groupcode",fn:function(r){return[s("el-tag",{style:e._f("dictColor")("consts_type",r.row.groupcode),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("consts_type",r.row.groupcode))+" ")])]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.sysConfig.name","\u53C2\u6570\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(r){e.$set(e.queryParam,"name",r)},expression:"queryParam.name"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:r,visible:a},on:{save:e.saveQueries}})]}}])})],1),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}})],1)},f=[],h=d.normalizeComponent(g,p,f,!1,null,"00d35378",null,null);const i=h.exports;i.install=function(t){t.component(i.name,i)};exports.GDpackage=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./http.datasource.294b01e2.js"),d=require("./components.chartbi.e4680eaa.js"),c=require("./utils.mixins.js.750ca50e.js"),p={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{type:"selection-radio",width:"60",fixed:!0},{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",width:"220",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",width:"180",type:"slot",slotType:"datasourcetype",align:"left",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"selectMultiple",dictTypeCode:"datasourcetype"})},{transKey:"gd.dataSource.host",prop:"host",width:"200",label:"\u4E3B\u673A",align:"left"},{transKey:"gd.dataSource.port",prop:"port",width:"120",label:"\u7AEF\u53E3",align:"left"},{transKey:"gd.dataSource.database",prop:"database",width:"180",label:"\u6570\u636E\u5E93",align:"left"},{transKey:"gd.user.status",prop:"statecodes",width:"120",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"},{transKey:"gd.dataSource.connectionString",prop:"connectstring",width:"260",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",align:"left"},{transKey:"gd.fieldSecurity.createdTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.task.description",prop:"description",width:"260",label:"\u63CF\u8FF0",align:"left"}],formColumns:[{transKey:"gd.dataSource.name",effectType:"input",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",effectType:"select",label:"\u6570\u636E\u6E90\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"datasourcetype",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.dataSource.host",effectType:"input",prop:"host",label:"\u4E3B\u673A",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.port",effectType:"input",prop:"port",label:"\u7AEF\u53E3",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.database",effectType:"input",prop:"database",label:"\u6570\u636E\u5E93",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.userName",effectType:"input",prop:"userid",label:"\u7528\u6237\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.paw",effectType:"input",prop:"password",label:"\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}],type:"slot",slotType:"password"},{transKey:"gd.dataSource.extend",effectType:"input",prop:"extraparm",label:"\u6269\u5C55",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.dataSource.connectionString",effectType:"textarea",prop:"connectstring",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}},{transKey:"gd.task.description",effectType:"textarea",prop:"description",label:"\u63CF\u8FF0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysDataSource:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysDataSource:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysDataSource:delete"}],formButtons:[{displayName:"\u6D4B\u8BD5\u8FDE\u63A5",functionName:"handleConnection",show:!0,transKey:"gd.dataSource.testConnection",icon:"el-icon-connection",validate:!0},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",effectType:"selectMultiple",dictTypeCode:"datasourcetype",rules:[]}]}}};const u={name:"GdDataSource",props:{height:{type:Number,default:100},openMode:{type:[String,Number],default:1},record:{type:Object,default:()=>({})}},mixins:[c.tablesFilter,p],data(){return{transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},type:"password",loadData:t=>i.sysDataSourcePage(Object.assign(t,this.queryParam)).then(e=>(e.success&&this.openMode==2&&this.$emit("changeData",e.data.rows),e.data))}},computed:{getTableColumns(){return this.tableColumns.filter(t=>t.type==="selection"?this.openMode==1:t.type==="selection-radio"?this.openMode!=1:!0)},getHeight(){const t=this.openMode==2?80:0;return this.height-t},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{swichType(){this.type=this.type==="password"?"text":"password"},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.formLoading=!0,this.$refs.editForm.open(t).then(e=>{const a=i.sysDataSourceDetail({id:t.id});e.done(a),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,a)=>{this.delHand(t,e,a)}})},delHand(t,e,a){if(t!=="confirm"){a();return}let r=[];this.selectedRows.forEach(s=>{let n=i.sysDataSourceDel(s).then(o=>o);r.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(s=>{a();const n=s.filter(o=>!o.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),this.handleOk(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},async edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:t,record:e,btn:a},r,s){let n=a.item.functionName;this[n]&&this[n]({data:t,record:e,btn:a},r,s)},handleSubmit({data:t,record:e,btn:a},r,s){this.formLoading=!0,(e?i.sysDataSourceEdit:i.sysDataSourceAdd)(t).then(o=>{o.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),s(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.formLoading=!1})},handleConnection({data:t,record:e,btn:a},r,s){this.formLoading=!0,i.sysDataSourceConnection(t).then(n=>{n.code===400?this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message):this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.formLoading=!1})},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},dictSwitch(t,e){let a=this.$options.filters.dictData(e).filter(r=>r.code==t)[0];return a!=null&&a.colour?a.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){if(this.openMode==2&&this.record.options.val!==void 0){const t=typeof this.record.options.val;let e=t==="string"||t==="number"?[this.record.options.val]:[...this.record.options.val];this.selectedRowKeys=e.filter(a=>a!=="")}}};var h=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.getTableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:r,row:s}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:s,highlight:""},on:{click:e.editForm}})]}},{key:"datasourcetype",fn:function({column:r,row:s}){return[e.dictSwitch(s.datasourcetype,"datasourcetype")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.datasourcetype,"datasourcetype")}},[e._v(" "+e._s(e._f("dictType")("datasourcetype",s.datasourcetype))+" ")]):a("span",[e._v(e._s(e._f("dictType")("datasourcetype",s.datasourcetype)))])]}},{key:"statecodes",fn:function({column:r,row:s}){return[e.dictSwitch(s.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.statecodes,"state_code")}},[e._v(" "+e._s(e._f("dictType")("state_code",s.statecodes))+" ")]):a("span",[e._v(e._s(e._f("dictType")("state_code",s.statecodes)))])]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.dataSource.name","\u8FDE\u63A5\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(r){e.$set(e.queryParam,"name",r)},expression:"queryParam.name"}}),a("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:s}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:r,visible:s},on:{save:e.saveQueries}})]}}])})],1),a("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode,needLoad:!0},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"password",fn:function({data:r,column:s}){return[a("el-input",{attrs:{type:e.type,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:r[s.prop],callback:function(n){e.$set(r,s.prop,n)},expression:"data[column.prop]"}},[a("i",{staticClass:"el-input__icon gd-icons",class:e.type==="password"?"gd-icon-icon-test2":"gd-icon-icon-test1",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:e.swichType},slot:"suffix"})])]}}])})],1)},g=[],y=d.normalizeComponent(u,h,g,!1,null,"608adc74",null,null);const l=y.exports;l.install=function(t){t.component(l.name,l)};exports.GDpackage=l;
|
|
1
|
+
"use strict";const i=require("./http.datasource.294b01e2.js"),d=require("./components.chartbi.13a8a7b5.js"),c=require("./utils.mixins.js.750ca50e.js"),p={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{type:"selection-radio",width:"60",fixed:!0},{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",width:"220",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",width:"180",type:"slot",slotType:"datasourcetype",align:"left",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"selectMultiple",dictTypeCode:"datasourcetype"})},{transKey:"gd.dataSource.host",prop:"host",width:"200",label:"\u4E3B\u673A",align:"left"},{transKey:"gd.dataSource.port",prop:"port",width:"120",label:"\u7AEF\u53E3",align:"left"},{transKey:"gd.dataSource.database",prop:"database",width:"180",label:"\u6570\u636E\u5E93",align:"left"},{transKey:"gd.user.status",prop:"statecodes",width:"120",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"},{transKey:"gd.dataSource.connectionString",prop:"connectstring",width:"260",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",align:"left"},{transKey:"gd.fieldSecurity.createdTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.task.description",prop:"description",width:"260",label:"\u63CF\u8FF0",align:"left"}],formColumns:[{transKey:"gd.dataSource.name",effectType:"input",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",effectType:"select",label:"\u6570\u636E\u6E90\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"datasourcetype",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.dataSource.host",effectType:"input",prop:"host",label:"\u4E3B\u673A",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.port",effectType:"input",prop:"port",label:"\u7AEF\u53E3",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.database",effectType:"input",prop:"database",label:"\u6570\u636E\u5E93",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.userName",effectType:"input",prop:"userid",label:"\u7528\u6237\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.paw",effectType:"input",prop:"password",label:"\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}],type:"slot",slotType:"password"},{transKey:"gd.dataSource.extend",effectType:"input",prop:"extraparm",label:"\u6269\u5C55",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.dataSource.connectionString",effectType:"textarea",prop:"connectstring",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}},{transKey:"gd.task.description",effectType:"textarea",prop:"description",label:"\u63CF\u8FF0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysDataSource:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysDataSource:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysDataSource:delete"}],formButtons:[{displayName:"\u6D4B\u8BD5\u8FDE\u63A5",functionName:"handleConnection",show:!0,transKey:"gd.dataSource.testConnection",icon:"el-icon-connection",validate:!0},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",effectType:"selectMultiple",dictTypeCode:"datasourcetype",rules:[]}]}}};const u={name:"GdDataSource",props:{height:{type:Number,default:100},openMode:{type:[String,Number],default:1},record:{type:Object,default:()=>({})}},mixins:[c.tablesFilter,p],data(){return{transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},type:"password",loadData:t=>i.sysDataSourcePage(Object.assign(t,this.queryParam)).then(e=>(e.success&&this.openMode==2&&this.$emit("changeData",e.data.rows),e.data))}},computed:{getTableColumns(){return this.tableColumns.filter(t=>t.type==="selection"?this.openMode==1:t.type==="selection-radio"?this.openMode!=1:!0)},getHeight(){const t=this.openMode==2?80:0;return this.height-t},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{swichType(){this.type=this.type==="password"?"text":"password"},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.formLoading=!0,this.$refs.editForm.open(t).then(e=>{const a=i.sysDataSourceDetail({id:t.id});e.done(a),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,a)=>{this.delHand(t,e,a)}})},delHand(t,e,a){if(t!=="confirm"){a();return}let r=[];this.selectedRows.forEach(s=>{let n=i.sysDataSourceDel(s).then(o=>o);r.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(s=>{a();const n=s.filter(o=>!o.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),this.handleOk(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},async edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:t,record:e,btn:a},r,s){let n=a.item.functionName;this[n]&&this[n]({data:t,record:e,btn:a},r,s)},handleSubmit({data:t,record:e,btn:a},r,s){this.formLoading=!0,(e?i.sysDataSourceEdit:i.sysDataSourceAdd)(t).then(o=>{o.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),s(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.formLoading=!1})},handleConnection({data:t,record:e,btn:a},r,s){this.formLoading=!0,i.sysDataSourceConnection(t).then(n=>{n.code===400?this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message):this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.formLoading=!1})},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},dictSwitch(t,e){let a=this.$options.filters.dictData(e).filter(r=>r.code==t)[0];return a!=null&&a.colour?a.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){if(this.openMode==2&&this.record.options.val!==void 0){const t=typeof this.record.options.val;let e=t==="string"||t==="number"?[this.record.options.val]:[...this.record.options.val];this.selectedRowKeys=e.filter(a=>a!=="")}}};var h=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.getTableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:r,row:s}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:s,highlight:""},on:{click:e.editForm}})]}},{key:"datasourcetype",fn:function({column:r,row:s}){return[e.dictSwitch(s.datasourcetype,"datasourcetype")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.datasourcetype,"datasourcetype")}},[e._v(" "+e._s(e._f("dictType")("datasourcetype",s.datasourcetype))+" ")]):a("span",[e._v(e._s(e._f("dictType")("datasourcetype",s.datasourcetype)))])]}},{key:"statecodes",fn:function({column:r,row:s}){return[e.dictSwitch(s.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.statecodes,"state_code")}},[e._v(" "+e._s(e._f("dictType")("state_code",s.statecodes))+" ")]):a("span",[e._v(e._s(e._f("dictType")("state_code",s.statecodes)))])]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.dataSource.name","\u8FDE\u63A5\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(r){e.$set(e.queryParam,"name",r)},expression:"queryParam.name"}}),a("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:s}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:r,visible:s},on:{save:e.saveQueries}})]}}])})],1),a("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode,needLoad:!0},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"password",fn:function({data:r,column:s}){return[a("el-input",{attrs:{type:e.type,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:r[s.prop],callback:function(n){e.$set(r,s.prop,n)},expression:"data[column.prop]"}},[a("i",{staticClass:"el-input__icon gd-icons",class:e.type==="password"?"gd-icon-icon-test2":"gd-icon-icon-test1",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:e.swichType},slot:"suffix"})])]}}])})],1)},g=[],y=d.normalizeComponent(u,h,g,!1,null,"608adc74",null,null);const l=y.exports;l.install=function(t){t.component(l.name,l)};exports.GDpackage=l;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as l, a as d, b as c, c as p, d as u, e as h } from "./http.datasource.aa5cd0d1.mjs";
|
|
2
|
-
import { m as g, n as y } from "./components.chartbi.
|
|
2
|
+
import { m as g, n as y } from "./components.chartbi.7356b244.mjs";
|
|
3
3
|
import { t as f } from "./utils.mixins.js.be01e599.mjs";
|
|
4
4
|
const m = {
|
|
5
5
|
data() {
|