gds-plus-design-vue 1.1.87 → 1.2.2

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.
Files changed (84) hide show
  1. package/lib/{chartbi.c211f08d.js → chartbi.06e48153.js} +20 -20
  2. package/lib/{chartbi.090c7bd2.mjs → chartbi.cdd1e365.mjs} +21 -14
  3. package/lib/gd-initial.js +12 -12
  4. package/lib/gd-initial.mjs +1993 -1336
  5. package/lib/main.2415a49a.js +1 -0
  6. package/lib/{main.b4723893.mjs → main.2cddfbbd.mjs} +5 -5
  7. package/lib/{main.6903ab7a.js → main.4c447fc3.js} +1 -1
  8. package/lib/{main.197a0d5f.mjs → main.86fe06d4.mjs} +6 -6
  9. package/lib/{main.4f2a165f.mjs → main.b2d0a309.mjs} +10 -10
  10. package/lib/{main.d1772cf9.js → main.d091d06d.js} +1 -1
  11. package/lib/{messages.0e2d9d5a.js → messages.2fff74f3.js} +5 -5
  12. package/lib/{messages.a9287789.mjs → messages.d8abe18d.mjs} +18 -18
  13. package/lib/style.css +3 -3
  14. package/lib/{system.account.d3dd14ec.js → system.account.8ea53681.js} +2 -2
  15. package/lib/{system.account.e95f40c9.mjs → system.account.9bc40d08.mjs} +230 -230
  16. package/lib/{system.config.e74cc108.mjs → system.config.8223d495.mjs} +3 -3
  17. package/lib/{system.config.1164deec.js → system.config.c6e30213.js} +1 -1
  18. package/lib/{system.datasource.034737e6.mjs → system.datasource.57233650.mjs} +3 -3
  19. package/lib/{system.datasource.813c512e.js → system.datasource.fd6a4e76.js} +1 -1
  20. package/lib/{system.dict.9b1038c3.mjs → system.dict.8f95218b.mjs} +115 -89
  21. package/lib/system.dict.a24f33b0.js +1 -0
  22. package/lib/{system.duplicatechecking.e5542a97.js → system.duplicatechecking.39293985.js} +1 -1
  23. package/lib/{system.duplicatechecking.1aac5b8c.mjs → system.duplicatechecking.6b706948.mjs} +17 -9
  24. package/lib/{system.email.6041b7b0.js → system.email.a2d9a307.js} +2 -2
  25. package/lib/{system.email.96d35919.mjs → system.email.dae988be.mjs} +4 -4
  26. package/lib/{system.fieldsecurity.0909e14b.mjs → system.fieldsecurity.02627a7a.mjs} +14 -14
  27. package/lib/{system.fieldsecurity.eb33e06f.js → system.fieldsecurity.a0cec24d.js} +1 -1
  28. package/lib/{system.file.507bf874.mjs → system.file.0fa095a9.mjs} +4 -4
  29. package/lib/{system.file.e37f9bd2.js → system.file.d695ab37.js} +1 -1
  30. package/lib/{system.log.0c37bd82.mjs → system.log.acb64505.mjs} +2 -2
  31. package/lib/{system.log.73097e0b.js → system.log.c07ae5db.js} +1 -1
  32. package/lib/{system.machine.4302c7e3.js → system.machine.7fa3e3d1.js} +1 -1
  33. package/lib/{system.machine.fb7aa834.mjs → system.machine.fc392d7f.mjs} +2 -2
  34. package/lib/{system.notice.128ebe61.mjs → system.notice.5ae50bd4.mjs} +5 -5
  35. package/lib/{system.notice.d92fe0cd.js → system.notice.f18578ae.js} +1 -1
  36. package/lib/{system.noticereceived.54ac8bcb.mjs → system.noticereceived.1aa70b65.mjs} +4 -4
  37. package/lib/{system.noticereceived.32361d39.js → system.noticereceived.bfa98a9b.js} +1 -1
  38. package/lib/{system.onlineuser.2c37c72c.js → system.onlineuser.1c428d05.js} +1 -1
  39. package/lib/{system.onlineuser.2a4b2db5.mjs → system.onlineuser.3d848a32.mjs} +2 -2
  40. package/lib/{system.org.df5901a3.js → system.org.5bb36f9c.js} +1 -1
  41. package/lib/{system.org.146afbe9.mjs → system.org.fcf96d1e.mjs} +3 -3
  42. package/lib/{system.permissions.5f00b39f.mjs → system.permissions.23f5b097.mjs} +11 -11
  43. package/lib/{system.permissions.41571e57.js → system.permissions.a1a9505c.js} +2 -2
  44. package/lib/{system.plugin.ddd4c699.js → system.plugin.b6de4673.js} +1 -1
  45. package/lib/{system.plugin.9b9c4301.mjs → system.plugin.e37f9dbc.mjs} +4 -4
  46. package/lib/{system.pos.eb8248c1.mjs → system.pos.1a01fc97.mjs} +3 -3
  47. package/lib/{system.pos.352032e6.js → system.pos.a4fb19b0.js} +1 -1
  48. package/lib/system.promptmanagement.290958b1.js +1 -0
  49. package/lib/{system.promptmanagement.cd36225c.mjs → system.promptmanagement.36a65c51.mjs} +20 -12
  50. package/lib/{system.role.8d9f0f33.mjs → system.role.68de93ef.mjs} +13 -13
  51. package/lib/{system.role.656fa7cc.js → system.role.88100f66.js} +1 -1
  52. package/lib/{system.sumberrules.6eee79be.mjs → system.sumberrules.cdef9308.mjs} +5 -5
  53. package/lib/system.sumberrules.dd6299e8.js +1 -0
  54. package/lib/system.team.53d64006.js +1 -0
  55. package/lib/system.team.ee652fe4.mjs +926 -0
  56. package/lib/system.teammembers.26a2ba81.mjs +398 -0
  57. package/lib/system.teammembers.4a3dc336.js +1 -0
  58. package/lib/{system.timers.f4eaacaf.mjs → system.timers.4efa8a7d.mjs} +16 -16
  59. package/lib/{system.timers.a348d394.js → system.timers.b9424204.js} +2 -2
  60. package/lib/{system.translation.00e5bfa2.mjs → system.translation.0a9399b4.mjs} +14 -14
  61. package/lib/{system.translation.aa511bcb.js → system.translation.21d2fd8b.js} +1 -1
  62. package/lib/{system.user.eecef7c2.mjs → system.user.4fcfdf99.mjs} +9 -9
  63. package/lib/{system.user.2a00c354.js → system.user.d48a08db.js} +3 -3
  64. package/lib/{system.useraffiliation.f986d344.js → system.useraffiliation.a59ce45b.js} +1 -1
  65. package/lib/{system.useraffiliation.d638afe1.mjs → system.useraffiliation.fb002239.mjs} +7 -7
  66. package/lib/{system.webresource.5071b3f4.js → system.webresource.3366cc29.js} +1 -1
  67. package/lib/{system.webresource.d25eab7d.mjs → system.webresource.4df01c92.mjs} +9 -9
  68. package/lib/{system.welcome.1988f581.mjs → system.welcome.120f4b50.mjs} +2 -2
  69. package/lib/{system.welcome.b6ec1ec0.js → system.welcome.472f099b.js} +1 -1
  70. package/locale/el/en_US.js +122 -122
  71. package/locale/el/id_ID.js +122 -122
  72. package/locale/el/vi_VN.js +122 -122
  73. package/locale/el/zh_CN.js +122 -122
  74. package/locale/en_US.js +17 -2
  75. package/locale/id_ID.js +17 -2
  76. package/locale/vi_VN.js +17 -2
  77. package/locale/zh_CN.js +17 -2
  78. package/package.json +1 -1
  79. package/lib/main.d9f793bb.js +0 -1
  80. package/lib/system.dict.2deb0cde.js +0 -1
  81. package/lib/system.promptmanagement.25e1639b.js +0 -1
  82. package/lib/system.sumberrules.0a269af6.js +0 -1
  83. /package/lib/{element-theme-chalk.ae828c17.js → element-theme-chalk.dee12271.js} +0 -0
  84. /package/lib/{element-theme-chalk.35b1f600.mjs → element-theme-chalk.fbb1a631.mjs} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";const M=require("./chartbi.c211f08d.js"),q=require("vue"),R=require("./messages.0e2d9d5a.js"),Z=r=>r&&typeof r=="object"&&"default"in r?r:{default:r},J=Z(q);function K(r){return window.axios({url:"/login",method:"post",data:r})}function Q(r){return window.axios({url:"/logout",method:"get",params:r})}function ee(r){return window.axios({url:"/getLoginUser",method:"get",params:r})}function te(r){return window.axios({url:"/sysBookmark/page",method:"post",data:r})}function ne(r){return window.axios({url:"/sysBookmark/delete",method:"post",data:r})}function oe(r){return window.axios({url:"/sysBookmark/add",method:"post",data:r})}function re(r){return window.axios({url:"/getLoginUser2",method:"get",params:r})}function se(r){return window.axios({url:"/OAuth2/authorize2",method:"post",data:r})}function ie(r){return window.axios({url:"/OAuth2/login",method:"post",data:r})}function ae(r){return window.axios({url:"/sysApp/list",method:"get",params:r})}function ce(r){return window.axios({url:"/sysApp/listByAppsId",method:"get",params:r})}function le(r){return window.axios({url:"/sysApp/add",method:"post",data:r})}function ue(r){return window.axios({url:"/sysApp/edit",method:"post",data:r})}function de(r){return window.axios({url:"/sysApp/delete",method:"post",data:r})}function he(r){return window.axios({url:"/sysApp/changeStatus",method:"post",data:r})}const F=[{key:"gd.theme.twilight",color:"#F5222D"},{key:"gd.theme.volcano",color:"#FA541C"},{key:"gd.theme.nightfall",color:"#FAAD14"},{key:"gd.theme.mingQing",color:"#13C2C2"},{key:"gd.theme.auroragreen",color:"#52C41A"},{key:"gd.theme.dawnBlue",color:"#1890FF"},{key:"gd.theme.soypurple",color:"#722ED1"}];const pe={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 r="",e=this.$route.meta.title;return e==="\u57FA\u672C\u8BBE\u7F6E"?r="basicSettings":e==="\u5B89\u5168\u8BBE\u7F6E"?r="securitySetting":e==="\u4E2A\u6027\u5316\u8BBE\u7F6E"?r="personalization":e==="\u65B0\u6D88\u606F\u901A\u77E5"?r="notify":e==="\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"&&(r="bindenterpriseWechat"),r===""?e:this.$i18nt("gd.account."+r)},...M.mapGetters(["userInfo","screenHeight","primaryColor","multiTab"])},mounted(){this.updateMenu()},methods:{onOpenChange(r,e){this.openKeys=openKeys},updateMenu(){const r=this.$route.matched.concat();this.activeIndex=r.pop().path},clickWx(r,e){const o=this.$route.matched.concat();this.activeIndex=o.pop().path},fadeColor(r,e){let o=parseInt(r.substring(1,3),16),a=parseInt(r.substring(3,5),16),d=parseInt(r.substring(5,7),16);return`rgba(${o},${a},${d},${e})`}},watch:{$route(r){this.updateMenu()}}};var ge=function(){var e=this,o=e._self._c;return o("div",{staticClass:"page-header-index-wide",style:e.style},[o("el-card",{style:e.getHeight,attrs:{bordered:!1,bodyStyle:{padding:"16px 0",height:e.getHeight+"px"}}},[o("div",{staticClass:"account-settings-info-main"},[o("div",{staticClass:"account-settings-info-left",style:{"--dilute":e.fadeColord}},[o("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{router:"","default-active":e.$route.path,mode:"vertical"},on:{select:e.clickWx}},[o("el-menu-item",{attrs:{index:"/account/settings/base"}},[e._v(e._s(e.$i18nt("gd.account.basicSettings")))]),o("el-menu-item",{attrs:{index:"/account/settings/security"}},[e._v(e._s(e.$i18nt("gd.account.securitySetting")))]),o("el-menu-item",{attrs:{index:"/account/settings/custom"}},[e._v(e._s(e.$i18nt("gd.account.personalization")))])],1)],1),o("div",{staticClass:"account-settings-info-right"},[o("div",{staticClass:"account-settings-info-title"},[o("span",[e._v(e._s(e.getTitle))])]),e.multiTab?o("keep-alive",[o("router-view",{key:e.$route.fullPath})],1):o("router-view",{key:e.$route.fullPath})],1)])])],1)},fe=[],me=M.normalizeComponent(pe,ge,fe,!1,null,"2a9f8bc3",null,null);const W=me.exports;W.install=function(r){r.component(W.name,W)};function ve(r){return window.axios({url:"/sysUser/page",method:"get",params:r})}function we(r){return window.axios({url:"/sysUser/add",method:"post",data:r})}function ye(r){return window.axios({url:"/sysUser/edit",method:"post",data:r})}function xe(r){return window.axios({url:"/sysUser/ownRole",method:"get",params:r})}function Ce(r){return window.axios({url:"/sysUser/changeRole",method:"post",data:r})}function be(r){return window.axios({url:"/sysUser/changeStatus",method:"post",data:r})}function _e(r){return window.axios({url:"/sysUser/resetPwd",method:"post",data:r})}function $e(r){return window.axios({url:"/sysUser/selector",method:"get",params:r})}function Ie(r){return window.axios({url:"/sysUser/updateAvatar",method:"post",data:r})}function Se(r){return window.axios({url:"/sysUser/updateInfo",method:"post",data:r})}function ke(r){return window.axios({url:"/sysUser/export",method:"get",data:r,responseType:"blob"})}function Ae(r){return window.axios({url:"/sysUser/import",method:"post",data:r})}function Le(r){return window.axios({url:"/sysUser/updateConfigTheme",method:"post",data:r})}function Y(r){return window.axios({url:"/sysConfig/GetPasswordRules",method:"get",params:r})}function z(r){return window.axios({url:"/sysUser/updatePwdByAccount",method:"post",data:r})}function Te(r){return window.axios({url:"/sysUser/resetPwdByAccount",method:"post",data:r})}function N(r){return window.axios({url:"/sysConfig/GetConfigInfoByCode",method:"get",params:r})}function Ee(r){return window.axios({url:"/sysUser/ApplyResetPassword",method:"post",data:r})}function Oe(r){return window.axios({url:"/sysUserPRC/CheckPRCValidation",method:"post",data:r})}function Me(r){return window.axios({url:"/wechatwork/LoginByWeChatWork",method:"get",params:r})}function Ue(r){return window.axios({url:"/wechatwork/BindWechatWorkAccount",method:"get",params:r})}function We(r){return window.axios({url:"/wechatwork/BindWechatWorkAccountByCode",method:"get",params:r})}function D(r){return window.axios({url:"/sysConfig/GetConfigsByCode",method:"get",params:r})}function Pe(r){return window.axios({url:"/sysUser/ChangeUserBUJob",method:"post",data:r})}function He(r){return window.axios({url:"/getUserListByRoleId",method:"get",params:r})}function Be(r){return window.axios({url:"/bindUsersToRole",method:"post",data:r})}function Re(r){return window.axios({url:"/unbindUsersFromRole",method:"post",data:r})}var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ye(r){var e=r.default;if(typeof e=="function"){var o=function(){return e.apply(this,arguments)};o.prototype=e.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(a){var d=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(o,a,d.get?d:{enumerable:!0,get:function(){return r[a]}})}),o}var j={exports:{}};(function(r,e){(function(o,a){r.exports=a()})(window,function(){return function(o){var a={};function d(h){if(a[h])return a[h].exports;var y=a[h]={i:h,l:!1,exports:{}};return o[h].call(y.exports,y,y.exports,d),y.l=!0,y.exports}return d.m=o,d.c=a,d.d=function(h,y,$){d.o(h,y)||Object.defineProperty(h,y,{enumerable:!0,get:$})},d.r=function(h){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},d.t=function(h,y){if(1&y&&(h=d(h)),8&y||4&y&&typeof h=="object"&&h&&h.__esModule)return h;var $=Object.create(null);if(d.r($),Object.defineProperty($,"default",{enumerable:!0,value:h}),2&y&&typeof h!="string")for(var I in h)d.d($,I,function(A){return h[A]}.bind(null,I));return $},d.n=function(h){var y=h&&h.__esModule?function(){return h.default}:function(){return h};return d.d(y,"a",y),y},d.o=function(h,y){return Object.prototype.hasOwnProperty.call(h,y)},d.p="",d(d.s=6)}([function(o,a,d){var h=d(2);typeof h=="string"&&(h=[[o.i,h,""]]);var y={hmr:!0,transform:void 0,insertInto:void 0};d(4)(h,y),h.locals&&(o.exports=h.locals)},function(o,a,d){var h=d(0);d.n(h).a},function(o,a,d){(o.exports=d(3)(!1)).push([o.i,`
1
+ "use strict";const M=require("./chartbi.06e48153.js"),q=require("vue"),R=require("./messages.2fff74f3.js"),Z=r=>r&&typeof r=="object"&&"default"in r?r:{default:r},J=Z(q);function K(r){return window.axios({url:"/login",method:"post",data:r})}function Q(r){return window.axios({url:"/logout",method:"get",params:r})}function ee(r){return window.axios({url:"/getLoginUser",method:"get",params:r})}function te(r){return window.axios({url:"/sysBookmark/page",method:"post",data:r})}function ne(r){return window.axios({url:"/sysBookmark/delete",method:"post",data:r})}function oe(r){return window.axios({url:"/sysBookmark/add",method:"post",data:r})}function re(r){return window.axios({url:"/getLoginUser2",method:"get",params:r})}function se(r){return window.axios({url:"/OAuth2/authorize2",method:"post",data:r})}function ie(r){return window.axios({url:"/OAuth2/login",method:"post",data:r})}function ae(r){return window.axios({url:"/sysUser/page",method:"get",params:r})}function ce(r){return window.axios({url:"/sysUser/add",method:"post",data:r})}function le(r){return window.axios({url:"/sysUser/edit",method:"post",data:r})}function ue(r){return window.axios({url:"/sysUser/ownRole",method:"get",params:r})}function de(r){return window.axios({url:"/sysUser/changeRole",method:"post",data:r})}function he(r){return window.axios({url:"/sysUser/changeStatus",method:"post",data:r})}function pe(r){return window.axios({url:"/sysUser/resetPwd",method:"post",data:r})}function ge(r){return window.axios({url:"/sysUser/selector",method:"get",params:r})}function fe(r){return window.axios({url:"/sysUser/updateAvatar",method:"post",data:r})}function me(r){return window.axios({url:"/sysUser/updateInfo",method:"post",data:r})}function ve(r){return window.axios({url:"/sysUser/export",method:"get",data:r,responseType:"blob"})}function we(r){return window.axios({url:"/sysUser/import",method:"post",data:r})}function ye(r){return window.axios({url:"/sysUser/updateConfigTheme",method:"post",data:r})}function Y(r){return window.axios({url:"/sysConfig/GetPasswordRules",method:"get",params:r})}function z(r){return window.axios({url:"/sysUser/updatePwdByAccount",method:"post",data:r})}function xe(r){return window.axios({url:"/sysUser/resetPwdByAccount",method:"post",data:r})}function N(r){return window.axios({url:"/sysConfig/GetConfigInfoByCode",method:"get",params:r})}function Ce(r){return window.axios({url:"/sysUser/ApplyResetPassword",method:"post",data:r})}function be(r){return window.axios({url:"/sysUserPRC/CheckPRCValidation",method:"post",data:r})}function _e(r){return window.axios({url:"/wechatwork/LoginByWeChatWork",method:"get",params:r})}function $e(r){return window.axios({url:"/wechatwork/BindWechatWorkAccount",method:"get",params:r})}function Ie(r){return window.axios({url:"/wechatwork/BindWechatWorkAccountByCode",method:"get",params:r})}function D(r){return window.axios({url:"/sysConfig/GetConfigsByCode",method:"get",params:r})}function Se(r){return window.axios({url:"/sysUser/ChangeUserBUJob",method:"post",data:r})}function ke(r){return window.axios({url:"/getUserListByRoleId",method:"get",params:r})}function Ae(r){return window.axios({url:"/bindUsersToRole",method:"post",data:r})}function Le(r){return window.axios({url:"/unbindUsersFromRole",method:"post",data:r})}function Te(r){return window.axios({url:"/sysApp/list",method:"get",params:r})}function Ee(r){return window.axios({url:"/sysApp/listByAppsId",method:"get",params:r})}function Oe(r){return window.axios({url:"/sysApp/add",method:"post",data:r})}function Me(r){return window.axios({url:"/sysApp/edit",method:"post",data:r})}function Ue(r){return window.axios({url:"/sysApp/delete",method:"post",data:r})}function We(r){return window.axios({url:"/sysApp/changeStatus",method:"post",data:r})}const F=[{key:"gd.theme.twilight",color:"#F5222D"},{key:"gd.theme.volcano",color:"#FA541C"},{key:"gd.theme.nightfall",color:"#FAAD14"},{key:"gd.theme.mingQing",color:"#13C2C2"},{key:"gd.theme.auroragreen",color:"#52C41A"},{key:"gd.theme.dawnBlue",color:"#1890FF"},{key:"gd.theme.soypurple",color:"#722ED1"}];const Pe={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 r="",e=this.$route.meta.title;return e==="\u57FA\u672C\u8BBE\u7F6E"?r="basicSettings":e==="\u5B89\u5168\u8BBE\u7F6E"?r="securitySetting":e==="\u4E2A\u6027\u5316\u8BBE\u7F6E"?r="personalization":e==="\u65B0\u6D88\u606F\u901A\u77E5"?r="notify":e==="\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"&&(r="bindenterpriseWechat"),r===""?e:this.$i18nt("gd.account."+r)},...M.mapGetters(["userInfo","screenHeight","primaryColor","multiTab"])},mounted(){this.updateMenu()},methods:{onOpenChange(r,e){this.openKeys=openKeys},updateMenu(){const r=this.$route.matched.concat();this.activeIndex=r.pop().path},clickWx(r,e){const o=this.$route.matched.concat();this.activeIndex=o.pop().path},fadeColor(r,e){let o=parseInt(r.substring(1,3),16),a=parseInt(r.substring(3,5),16),d=parseInt(r.substring(5,7),16);return`rgba(${o},${a},${d},${e})`}},watch:{$route(r){this.updateMenu()}}};var He=function(){var e=this,o=e._self._c;return o("div",{staticClass:"page-header-index-wide",style:e.style},[o("el-card",{style:e.getHeight,attrs:{bordered:!1,bodyStyle:{padding:"16px 0",height:e.getHeight+"px"}}},[o("div",{staticClass:"account-settings-info-main"},[o("div",{staticClass:"account-settings-info-left",style:{"--dilute":e.fadeColord}},[o("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{router:"","default-active":e.$route.path,mode:"vertical"},on:{select:e.clickWx}},[o("el-menu-item",{attrs:{index:"/account/settings/base"}},[e._v(e._s(e.$i18nt("gd.account.basicSettings")))]),o("el-menu-item",{attrs:{index:"/account/settings/security"}},[e._v(e._s(e.$i18nt("gd.account.securitySetting")))]),o("el-menu-item",{attrs:{index:"/account/settings/custom"}},[e._v(e._s(e.$i18nt("gd.account.personalization")))])],1)],1),o("div",{staticClass:"account-settings-info-right"},[o("div",{staticClass:"account-settings-info-title"},[o("span",[e._v(e._s(e.getTitle))])]),e.multiTab?o("keep-alive",[o("router-view",{key:e.$route.fullPath})],1):o("router-view",{key:e.$route.fullPath})],1)])])],1)},Be=[],Re=M.normalizeComponent(Pe,He,Be,!1,null,"0ab9cb32",null,null);const W=Re.exports;W.install=function(r){r.component(W.name,W)};var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ye(r){var e=r.default;if(typeof e=="function"){var o=function(){return e.apply(this,arguments)};o.prototype=e.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(a){var d=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(o,a,d.get?d:{enumerable:!0,get:function(){return r[a]}})}),o}var j={exports:{}};(function(r,e){(function(o,a){r.exports=a()})(window,function(){return function(o){var a={};function d(h){if(a[h])return a[h].exports;var y=a[h]={i:h,l:!1,exports:{}};return o[h].call(y.exports,y,y.exports,d),y.l=!0,y.exports}return d.m=o,d.c=a,d.d=function(h,y,$){d.o(h,y)||Object.defineProperty(h,y,{enumerable:!0,get:$})},d.r=function(h){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},d.t=function(h,y){if(1&y&&(h=d(h)),8&y||4&y&&typeof h=="object"&&h&&h.__esModule)return h;var $=Object.create(null);if(d.r($),Object.defineProperty($,"default",{enumerable:!0,value:h}),2&y&&typeof h!="string")for(var I in h)d.d($,I,function(A){return h[A]}.bind(null,I));return $},d.n=function(h){var y=h&&h.__esModule?function(){return h.default}:function(){return h};return d.d(y,"a",y),y},d.o=function(h,y){return Object.prototype.hasOwnProperty.call(h,y)},d.p="",d(d.s=6)}([function(o,a,d){var h=d(2);typeof h=="string"&&(h=[[o.i,h,""]]);var y={hmr:!0,transform:void 0,insertInto:void 0};d(4)(h,y),h.locals&&(o.exports=h.locals)},function(o,a,d){var h=d(0);d.n(h).a},function(o,a,d){(o.exports=d(3)(!1)).push([o.i,`
2
2
  .vue-cropper[data-v-6dae58fd] {
3
3
  position: relative;
4
4
  width: 100%;
@@ -213,4 +213,4 @@
213
213
  <img src=`).concat(l.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,`px; transform:
214
214
  scale(`).concat(s,")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),i=this.mode.split(" ");switch(i[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 s=i[0];if(s.search("px")!==-1&&(s=s.replace("px",""),n=parseFloat(s)/this.trueWidth),s.search("%")!==-1&&(s=s.replace("%",""),n=parseFloat(s)/100*this.w/this.trueWidth),i.length===2&&s==="auto"){var l=i[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 i=this.w,s=this.h;if(this.centerBox){var l=this.trueWidth*this.scale,f=this.trueHeight*this.scale;i=l<i?l:i,s=f<s?f:s}var m=n||parseFloat(this.autoCropWidth),b=t||parseFloat(this.autoCropHeight);m!==0&&b!==0||(m=.8*i,b=.8*s),m=m>i?i:m,b=b>s?s:b,this.fixed&&(b=m/this.fixedNumber[0]*this.fixedNumber[1]),b>this.h&&(m=(b=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(m,b)}},changeCrop:function(n,t){var i=this;if(this.centerBox){var s=this.getImgAxis();n>s.x2-s.x1&&(t=(n=s.x2-s.x1)/this.fixedNumber[0]*this.fixedNumber[1]),t>s.y2-s.y1&&(n=(t=s.y2-s.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=n,this.cropH=t,this.checkCropLimitSize(),this.$nextTick(function(){i.cropOffsertX=(i.w-i.cropW)/2,i.cropOffsertY=(i.h-i.cropH)/2,i.centerBox&&i.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,i){n=n||this.x,t=t||this.y,i=i||this.scale;var s=!0;if(this.centerBox){var l=this.getImgAxis(n,t,i),f=this.getCropAxis();l.x1>=f.x1&&(s=!1),l.x2<=f.x2&&(s=!1),l.y1>=f.y1&&(s=!1),l.y2<=f.y2&&(s=!1)}return s}},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(i,s,l){for(var f=atob(this.toDataURL(s,l).split(",")[1]),m=f.length,b=new Uint8Array(m),x=0;x<m;x++)b[x]=f.charCodeAt(x);i(new Blob([b],{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)}};d(1);var A=function(n,t,i,s,l,f,m,b){var x,c=typeof n=="function"?n.options:n;if(t&&(c.render=t,c.staticRenderFns=i,c._compiled=!0),s&&(c.functional=!0),f&&(c._scopeId="data-v-"+f),m?(x=function(g){(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=b?function(){l.call(this,this.$root.$options.shadowRoot)}:l),x)if(c.functional){c._injectStyles=x;var u=c.render;c.render=function(g,w){return x.call(w),u(g,w)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,x):[x]}return{exports:n,options:c}}(I,h,[],!1,null,"6dae58fd",null);A.options.__file="src/vue-cropper.vue";var k=A.exports;d.d(a,"VueCropper",function(){return k});var L=function(n){n.component("VueCropper",k)};typeof window<"u"&&window.Vue&&L(window.Vue),a.default={version:"0.5.5",install:L,VueCropper:k,vueCropper:k}}])})})(j);const ze={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:j.exports.VueCropper},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},edit(r){this.fullscreen=!1,this.visible=!0,this.id=r},close(){this.id=null,this.visible=!1},cancelHandel(){this.close()},changeScale(r){r=r||1,this.$refs.cropper.changeScale(r)},rotateLeft(){this.$refs.cropper.rotateLeft()},rotateRight(){this.$refs.cropper.rotateRight()},beforeUpload(r){this.fileList=r;const e=new FileReader;return e.readAsDataURL(r),e.onload=()=>{this.options.img=e.result},!1},finish(r){r==="blob"?(this.uploading=!0,this.$refs.cropper.getCropBlob(e=>{const o=new window.File([e],this.fileList.name,{type:this.fileList.type}),a=new FormData;a.append("file",o),R.sysFileInfoUploadAvatar(a).then(d=>{d.success?this.updateAvatar(d.data):(this.uploading=!1,this.$message.error(d.message))})})):this.$refs.cropper.getCropData(e=>{})},updateAvatar(r){const e={id:this.id,avatar:r};Ie(e).then(o=>{this.uploading=!1,o.success?(this.visible=!1,this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.$emit("ok",r)}).catch(o=>{this.$emit("ok",r)})},realTime(r){this.previews=r},doEvent(r){let e=r.item.functionName;this[e]&&this[e]()}}};var Ne=function(){var e=this,o=e._self._c;return o("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.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}},[o("gd-modal-title",{attrs:{slot:"title",title:e.$i18nt("gd.account.modifyavatar","\u4FEE\u6539\u5934\u50CF"),fullscreen:e.fullscreen,buttons:[],confirmLoading:e.confirmLoading,showClose:!0,closed:"cancelHandel"},on:{changeEvent:e.doEvent},slot:"title"}),o("div",{staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body"},[o("el-row",[o("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[o("vue-cropper",{ref:"cropper",attrs:{img:e.options.img,info:!0,autoCrop:e.options.autoCrop,autoCropWidth:e.options.autoCropWidth,autoCropHeight:e.options.autoCropHeight,fixedBox:e.options.fixedBox},on:{realTime:e.realTime}})],1),o("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[o("div",{staticClass:"avatar-upload-preview"},[o("img",{style:e.previews.img,attrs:{src:e.previews.url}})])])],1),o("br"),o("el-row",[o("el-col",{attrs:{lg:3,md:3}},[o("el-upload",{attrs:{name:"file",action:"",beforeUpload:e.beforeUpload,showUploadList:!1}},[o("el-button",{staticClass:"el-icon-upload2"},[e._v(e._s(e.$i18nt("gd.account.selectPicture","\u9009\u62E9\u56FE\u7247")))])],1)],1),o("el-col",{attrs:{lg:{span:1,offset:2},md:2}},[o("el-button",{staticClass:"el-icon-plus",on:{click:function(a){return e.changeScale(1)}}})],1),o("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[o("el-button",{staticClass:"el-icon-minus",on:{click:function(a){return e.changeScale(-1)}}})],1),o("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[o("el-button",{staticClass:"el-icon-refresh-left",on:{click:e.rotateLeft}})],1),o("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[o("el-button",{staticClass:"el-icon-refresh-right",on:{click:e.rotateRight}})],1),o("el-col",{attrs:{lg:{span:2,offset:6},md:2}},[o("el-button",{attrs:{type:"primary",loading:e.uploading},on:{click:function(a){return e.finish("blob")}}},[e._v(" "+e._s(e.$i18nt("gd.btn.save"))+" ")])],1)],1)],1)],1)},De=[],je=M.normalizeComponent(ze,Ne,De,!1,null,"9ef46bcd",null,null);const Ge=je.exports;function Ve(r){return window.axios({url:"/sysLanguage/page",method:"get",params:r})}function qe(r){return window.axios({url:"/sysCurrency/page",method:"get",params:r})}function Ze(r){return window.axios({url:"/sysTimezone/page",method:"get",params:r})}const Je={props:{height:{type:Number,default:100}},name:"GdBaseSettings",components:{AvatarModal:Ge},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},...M.mapGetters(["userInfo","locale","language"])},mounted(){this.initUserInfo()},methods:{changeLanguage(r){let e=this.langData.filter(o=>o.id==r)[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(r=>{this.option.img=window.URL.createObjectURL(new Blob([r]))}).catch(r=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+r.message)}):this.option.img="/avatar2.jpg",this.getSexData(),this.spinning=!1},100)},onChange(r,e){console.log(r),this.birthdayString=r},currencyChange(){qe().then(r=>{r.success&&(this.currencyData=r.data.rows,J.default.ls.set("currencyData",r.data.rows))})},timezoneChange(){Ze().then(r=>{r.success&&(this.timezoneData=r.data.rows)})},languageChange(){Ve().then(r=>{r.success&&(this.langData=r.data.rows)})},submitUserInfo(){this.spinning||this.$refs.ruleForm.validate(r=>{r&&(this.spinning=!0,this.ruleForm.birthday=this.birthdayString,this.ruleForm.id=this.userInfo.id,Se(this.ruleForm).then(e=>{if(e.success){let o=this.langData.filter(a=>a.id==this.ruleForm.languageId)[0];this.$store.dispatch("Language",o.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(r){R.sysFileInfoPreview({id:r}).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 Ke=function(){var e=this,o=e._self._c;return o("div",{staticClass:"account-settings-info-view",staticStyle:{height:"100px"}},[o("el-row",{attrs:{gutter:16}},[o("el-col",{attrs:{md:24,lg:16}},[o("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[o("el-form-item",{attrs:{label:e.$i18nt("gd.account.nickname","\u6635\u79F0"),prop:"nickName"}},[o("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.nickName,callback:function(a){e.$set(e.ruleForm,"nickName",a)},expression:"ruleForm.nickName"}})],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.birthday","\u751F\u65E5"),prop:"birthday",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.onChange},model:{value:e.ruleForm.birthday,callback:function(a){e.$set(e.ruleForm,"birthday",a)},expression:"ruleForm.birthday"}})],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.sex","\u6027\u522B"),prop:"gender",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-radio-group",{model:{value:e.ruleForm.gender,callback:function(a){e.$set(e.ruleForm,"gender",a)},expression:"ruleForm.gender"}},e._l(e.sexData,function(a,d){return o("el-radio",{key:d,attrs:{label:a.code}},[e._v(" "+e._s(a.name)+" ")])}),1)],1),o("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"}]}},[o("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),o("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.account.tel","\u7535\u8BDD"),prop:"tel"}},[o("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.tel,callback:function(a){e.$set(e.ruleForm,"tel",a)},expression:"ruleForm.tel"}})],1),o("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"]}]}},[o("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),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.language","\u9ED8\u8BA4\u8BED\u8A00"),prop:"languageId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{select:e.changeLanguage},model:{value:e.ruleForm.languageId,callback:function(a){e.$set(e.ruleForm,"languageId",a)},expression:"ruleForm.languageId"}},e._l(e.langData,function(a,d){return o("el-option",{key:d,attrs:{value:a.id,label:a.name}})}),1)],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.currency","\u9ED8\u8BA4\u8D27\u5E01"),prop:"currencyId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.currencyId,callback:function(a){e.$set(e.ruleForm,"currencyId",a)},expression:"ruleForm.currencyId"}},e._l(e.currencyData,function(a,d){return o("el-option",{key:d,attrs:{value:a.id,label:a.name}})}),1)],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.timeZone","\u9ED8\u8BA4\u65F6\u533A"),prop:"timezoneId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.timezoneId,callback:function(a){e.$set(e.ruleForm,"timezoneId",a)},expression:"ruleForm.timezoneId"}},e._l(e.timezoneData,function(a,d){return o("el-option",{key:d,attrs:{value:a.id,label:a.name}})}),1)],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.submitUserInfo}},[e._v(" "+e._s(e.$i18nt("gd.account.updateInformation","\u66F4\u65B0\u57FA\u672C\u4FE1\u606F"))+" ")])],1)],1)],1),o("el-col",{style:{minHeight:"180px"},attrs:{md:24,lg:8}},[o("div",{staticClass:"ant-upload-preview",on:{click:function(a){return e.$refs.modal.edit(e.userInfo.id)}}},[o("i",{staticClass:"el-icon-upload upload-icon"}),o("div",{staticClass:"mask"},[o("i",{staticClass:"el-icon-plus"})]),o("img",{attrs:{src:e.option.img}})])])],1),o("avatar-modal",{ref:"modal",on:{ok:e.setavatar}})],1)},Qe=[],et=M.normalizeComponent(Je,Ke,Qe,!1,null,"af06f359",null,null);const P=et.exports;P.install=function(r){r.component(P.name,P)};function tt(r){return window.axios({url:"/sysMenu/list",method:"get",params:r})}function nt(r){return window.axios({url:"/sysMenu/v2/add",method:"post",data:r})}function ot(r){return window.axios({url:"/sysMenu/delete",method:"post",data:r})}function rt(r){return window.axios({url:"/sysMenu/detail",method:"post",data:r})}function st(r){return window.axios({url:"/sysMenu/edit",method:"post",data:r})}function it(r){return window.axios({url:"/sysMenu/treeForGrant",method:"get",params:r})}function at(r){return window.axios({url:"/sysMenu/change",method:"post",data:r})}function ct(r){return window.axios({url:"/sysMenu/listByAppsId",method:"post",params:r})}const lt={name:"GdCustomSettings",data(){return{colorList:F,options:[],homePage:["uvgsxjpu","ujhmcamph","uwcscihbx"],account:"",echartsList:[],value:0,primaryColors:this.primaryColor,propOptions:[],propOptionsOld:[],list:null,listOptions:[],listOptionsOld:[],presentText:[]}},computed:{predefine(){let r=[];return F.forEach(e=>{r.push(e.color)}),r},...M.mapGetters(["userInfo","addRouters","theme","primaryColor","echartsColor","systemInfo"])},watch:{primaryColor(){this.primaryColors=this.primaryColor}},methods:{okColor(r){this.$store.dispatch("EchartsColor",r),this.echartsList=[...r]},getColor(){this.echartsList=[...this.echartsColor]},renew(){let r=this,e=this.homePage,o=!1;if(e.length==0&&(o=!0),e.length>1&&(o=!0),!o){r.$message.error(r.$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,d,h)=>{this.renewHand(a,d,h,this.homePage)}})},renewHand(r,e,o,a){if(r!=="confirm"){o();return}let d=[],h=Le({configTheme:a.join(",")}).then(y=>y);d.push(h),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(d).then(y=>{o(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const $=y.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(r,e){const{level:o,value:a}=r;if(this.options.length===0){this.geData().then(()=>{if(this.presentText.length<this.homePage.length){const d=this.options.filter(h=>h.code===this.homePage[0])[0];this.presentText=d?this.presentText.concat([d.label]):this.presentText}e(this.options)});return}this.getMenuListAll(a).then(d=>{if(this.presentText.length<this.homePage.length&&o===2){this.presentText=this.presentText.concat([r.label]);const y=r.children.filter($=>$.value===this.homePage[o])[0];this.presentText=y?this.presentText.concat([y.label]):this.presentText}const h=this.$refs.cascader.presentText;this.presentText.length===this.homePage.length&&h===null&&(this.$refs.cascader.presentText=this.presentText.join(" / ")),e(d)})},geData(){return ae({}).then(r=>{if(r.success){let e=r.data.map(o=>{let a=this.userInfo.apps.filter(d=>d.code==o.code)[0];if(a!=null)return o.leaf=a==null,o.value=o.code,o.label=this.$i18nt(`Dynamics.${o.transkey}`,o.name),o.loading=!1,o});return e=e.filter(o=>o!==void 0),this.options=[...e],this.listOptionsOld=JSON.stringify(e),new Promise(o=>{o()})}})},getMenuListAll(r){return Promise.all([this.getMenuList({application:r}),this.sysMenuChange({application:r})]).then(e=>{let o=e[0].data,a=e[1].data;return o.map((d,h)=>{let y=a.filter($=>$.path==d.router);return o[h].value=d.router,o[h].label=this.$i18nt(`Dynamics.${d.transkey}`,d.name),o[h].leaf=d.children.length==0,o[h].disabled=y.length==0,d.children.length==0?o[h].children=null:d.children.map(($,I)=>{let A=a.filter(k=>k.path==$.router);o[h].children[I].value=$.router,o[h].children[I].label=this.$i18nt(`Dynamics.${$.transkey}`,$.name),o[h].children[I].children=[],o[h].children[I].leaf=!0,o[h].children[I].disabled=A.length==0}),d}),o.map(d=>{d.children=d.children?d.children.filter(h=>h.disabled==!1):[]}),o})},getMenuList(r){return tt(r).then(e=>e)},sysMenuChange(r){return at(r).then(e=>e)},onChangeCascader(r){const e=this.$refs.cascader.presentText;this.presentText=e!==null?e.split(" / "):[]},onChange(r){r?this.$store.dispatch("ToggleTheme","dark"):this.$store.dispatch("ToggleTheme","light")},async changeColor(r){const e=this,o=this.primaryColor;if(typeof r!="string")return;const a=this.$message({message:e.$i18nt("gd.theme.switchingTopics"),duration:0,iconClass:"el-icon-loading"}),d=this.getThemeCluster(r.replace("#","")),h=this.getThemeCluster(o.replace("#","")),y=(A,k)=>()=>{const L=this.getThemeCluster(this.primaryColor.replace("#","")),n=this.updateStyle(this[A],L,d);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.ae828c17.js")).then(A=>{this.chalk=A.default}),y("chalk","chalk-style")(),[].slice.call(document.querySelectorAll("style")).filter(A=>{const k=A.innerText;return new RegExp(o,"i").test(k)&&!/Chalk Variables/.test(k)}).forEach(A=>{const{innerText:k}=A;typeof k=="string"&&(A.innerText=this.updateStyle(k,h,d))}),this.$store.dispatch("ToggleColor",r),window.document.body.style=`--color:${r}`,this.$nextTick(()=>{setTimeout(()=>{a.close()},200)})},updateStyle(r,e,o){let a=r;return e.forEach((d,h)=>{a=a.replace(new RegExp(d,"ig"),o[h])}),a},getThemeCluster(r){const e=(d,h)=>{let y=parseInt(d.slice(0,2),16),$=parseInt(d.slice(2,4),16),I=parseInt(d.slice(4,6),16);return h===0?[y,$,I].join(","):(y+=Math.round(h*(255-y)),$+=Math.round(h*(255-$)),I+=Math.round(h*(255-I)),y=y.toString(16),$=$.toString(16),I=I.toString(16),`#${y}${$}${I}`)},o=(d,h)=>{let y=parseInt(d.slice(0,2),16),$=parseInt(d.slice(2,4),16),I=parseInt(d.slice(4,6),16);return y=Math.round((1-h)*y),$=Math.round((1-h)*$),I=Math.round((1-h)*I),y=y.toString(16),$=$.toString(16),I=I.toString(16),`#${y}${$}${I}`},a=[r];for(let d=0;d<=9;d++)a.push(e(r,Number((d/10).toFixed(2))));return a.push(o(r,.1)),a},traverse(r,e){let o=null;const a=d=>(d=d.filter((h,y)=>(h.children&&h.children.length>0&&a(h.children),h.value==r&&(o={...h}),!0)),d);return a(this.propOptions),o}},mounted(){this.getColor(),this.init(),this.primaryColor&&(this.primaryColors=this.primaryColor)}};var ut=function(){var e=this,o=e._self._c;return o("div",{staticStyle:{"padding-top":"12px"}},[o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",[e._v(e._s(e.$i18nt("gd.settings.overallStyle","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")))])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.overallStyleTip","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-content paw grid-flex"},[o("el-switch",{attrs:{"active-text":e.$i18nt("gd.settings.darkness","\u767D\u8272"),"active-color":e.primaryColor,"inactive-text":e.$i18nt("gd.settings.white","\u6697\u8272"),"active-value":1,"inactive-value":0},on:{change:e.onChange},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}})],1)])],1),o("el-divider"),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",[e._v(e._s(e.$i18nt("gd.settings.theme","\u4E3B\u9898\u8272")))])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.themeTip","\u9875\u9762\u4E3B\u9898\u914D\u8272"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-content paw grid-flex"},[o("el-color-picker",{ref:"colorPicker",staticClass:"theme-picker",attrs:{size:"small",predefine:e.predefine,"popper-class":"theme-picker-dropdown"},on:{change:e.changeColor},model:{value:e.primaryColors,callback:function(a){e.primaryColors=a},expression:"primaryColors"}})],1)])],1),o("el-divider"),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",[e._v(e._s(e.$i18nt("gd.settings.echartsColor","\u56FE\u8868\u8272")))])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.echartsColorStyle","\u56FE\u8868\u98CE\u683C\u914D\u8272"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-flex"},[e._l(e.echartsList,function(a,d){return[o("el-tooltip",{staticClass:"setting-drawer-theme-color-colorBlock",attrs:{content:a===0?e.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"):a}},[o("el-tag",{attrs:{color:a===0?e.primaryColor:a}})],1)]}),o("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),o("el-divider"),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",[e._v(e._s(e.$i18nt("gd.settings.homepage","\u4E2A\u4EBA\u9996\u9875")))])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.homepageTip","\u914D\u7F6E\u540E\u7528\u6237\u767B\u5F55\u76F4\u63A5\u8FDB\u5165\u4E2A\u4EBA\u9996\u9875"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-flex"},[o("el-cascader",{ref:"cascader",staticStyle:{width:"240px"},attrs:{clearable:"",props:{lazy:!0,lazyLoad:e.lazyLoad}},on:{change:e.onChangeCascader},model:{value:e.homePage,callback:function(a){e.homePage=a},expression:"homePage"}}),o("span",{staticClass:"active-color",staticStyle:{"margin-left":"10px",cursor:"pointer"},on:{click:e.renew}},[e._v(" "+e._s(e.$i18nt("gd.btn.update","\u66F4\u65B0"))+" ")])],1)])],1),o("el-divider"),o("gd-color-editor",{ref:"echartsTheme",on:{ok:e.okColor}})],1)},dt=[],ht=M.normalizeComponent(lt,ut,dt,!1,null,"731b5c2d",null,null);const H=ht.exports;H.install=function(r){r.component(H.name,H)};const pt={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")},...M.mapGetters(["labelPosition"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(r,e,o){this.fullscreen=!1,this.userId=r,this.code=e,this.num=o,this.num==1?this.getConfigInfo():this.$nextTick(()=>{this.formUpdPwd.setFieldsValue({account:this.userId})}),this.visible=!0},getConfigInfo(r){Y().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(r=>{if(r){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?z:We)(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(r,e,o){e&&e!==this.ruleForm.newPassword?o(this.$i18nt("gd.account.repeatPawTiperr"," \u8BF7\u786E\u8BA4\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u7684\u4E00\u81F4\u6027")):o()},oldtPassword(r,e,o){e&&e===this.ruleForm.password?o(this.$i18nt("gd.account.repeatPawTipodl","\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")):o()},doEvent(r){let e=r.item.functionName;this[e]&&this[e]()}}};var gt=function(){var e=this,o=e._self._c;return o("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.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}},[o("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent},slot:"title"}),o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body",staticStyle:{margin:"10px 10px 10px"}},[o("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":e.labelPosition},nativeOn:{submit:function(a){a.preventDefault()}}},[e.num==1?o("div",[o("el-form-item",{attrs:{label:e.$i18nt("gd.account.originalPaw","\u539F\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input")}]}},[o("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1),o("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}]}},[o("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.newPassword,callback:function(a){e.$set(e.ruleForm,"newPassword",a)},expression:"ruleForm.newPassword"}})],1),o("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}]}},[o("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.confirm,callback:function(a){e.$set(e.ruleForm,"confirm",a)},expression:"ruleForm.confirm"}})],1)],1):o("div",[o("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")}]}},[o("el-input",{attrs:{placeholder:e.$i18nt("gd.login.account","\u8BF7\u8F93\u5165\u8D26\u53F7"),disabled:e.disabled},model:{value:e.ruleForm.account,callback:function(a){e.$set(e.ruleForm,"account",a)},expression:"ruleForm.account"}})],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.login.password","\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[o("el-input",{attrs:{maxlength:18,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),"show-password":""},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1)],1)])],1)],1)},ft=[],mt=M.normalizeComponent(pt,gt,ft,!1,null,"a3f94a75",null,null);const G=mt.exports;const vt={props:{isClear:{type:Number,default:1}},components:{UpdPwd:G},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"):""},...M.mapGetters(["userInfo","language","primaryColor"])},mounted(){},methods:{open(r,e){this.num=e,this.visible=!0,this.titleWidth=this.language=="zh_CN"?350+"px":504+"px",this.num==1&&this.getWeChat(r)},getWeChat(r){let e=this;r.data.forEach((o,a)=>{o.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(e.appId=o.value),o.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(e.agentId=o.value),o.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(e.redirectURL=o.value)}),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:o}){e.isWeComLogin=o,e.num1=e.isWeComLogin==!0?1:0},onLoginSuccess({code:o}){e.code=o,e.$refs.updPwd.open(e.userInfo.account,o,2),e.visible=!1},onLoginFail(o){}})},500)},handleCancel(){this.confirmLoading=!1,this.visible=!1,this.$refs.wx_qrcode.innerHTML=""}}};var wt=function(){var e=this,o=e._self._c;return o("div",[o("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",attrs:{visible:e.visible,width:e.titleWidth,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[o("div",{staticClass:"main",style:e.style},[e.num==1?o("div",[o("div",{ref:"wx_qrcode",style:e.num1==0?"height: 290px;":"height: 290px",attrs:{id:"wx_qrcode"}}),o("div",{class:e.num1==0?"div_top":"div_topno"}),o("div",{class:e.num1==0?"div_bottom":""})]):e._e()])]),o("upd-pwd",{ref:"updPwd"})],1)},yt=[],xt=M.normalizeComponent(vt,wt,yt,!1,null,"078e179f",null,null);const Ct=xt.exports;const bt={name:"GdSecuritySettings",components:{UpdPwd:G,weChatBind:Ct},data(){return{isShow:!1,num:0,wxUserId:null,obj:{},appId:"",agentId:"",redirectURL:"",enterpriseNum:0,bindTitle:"\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1",dicsTitle:""}},watch:{language(r,e){this.changeLanguage()},userInfo(r,e){this.changUserInfo()}},created(){this.init()},mounted(){},computed:{...M.mapGetters(["userInfo","language"])},methods:{updPwd(){this.$refs.updPwd.open(this.userInfo.account,null,1)},bind(){this.$refs.weChatBind.open(this.obj,1)},getConfigInfo(){N({code:"GDS_ENTERPRISE_WECHAT_LOGIN"}).then(e=>{this.enterpriseNum=e.data.value})},getConfigsBy(){D({strCodes:"GDS_ENTERPRISE_WECHAT_CropID,GDS_ENTERPRISE_WECHAT_AgentId,GDS_ENTERPRISE_WECHAT_Redirect_URL"}).then(e=>{e.success&&(this.obj=e)})},getData(){ee().then(r=>{this.wxuserid=r.data.wxuserid})},changeLanguage(){this.init()},changUserInfo(){this.init()},init(){this.wxuserid=this.userInfo.wxuserid,this.getConfigInfo(),this.getData(),this.getConfigsBy()},getWeChat(r,e){let o=this;r.data.forEach((a,d)=>{a.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(o.appId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(o.agentId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(o.redirectURL=a.value)}),setTimeout(()=>{o.wwLogin=ww.createWWLoginPanel({el:"#wx_qrcode",params:{login_type:"CorpApp",appid:o.appId,agentid:o.agentId,redirect_uri:o.redirectURL,state:"loginState",redirect_type:"callback",panel_size:"middle",lang:e=="zh_CN"?"zh":"en"},onCheckWeComLogin({isWeComLogin:a}){console.log(a)},onLoginSuccess({code:a}){o.code=a,o.$refs.updPwd.open(o.userInfo.account,a,2),console.log(a)},onLoginFail(a){}})},500)},bindCode(r){r==1||r==0?this.getData():r==-1?this.getConfigsBy():r==2&&this.getConfigsBy()}}};var _t=function(){var e=this,o=e._self._c;return o("div",{staticStyle:{"padding-top":"12px"}},[o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",{staticClass:"grid-content bg-purple"},[e._v(" "+e._s(e.$i18nt("gd.account.passWord","\u8D26\u6237\u5BC6\u7801"))+" ")])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, .45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.strength","\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6"))+":"+e._s(e.$i18nt("gd.account.strong","\u5F3A"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-content paw grid-flex"},[o("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.updPwd}},[e._v(" "+e._s(e.$i18nt("gd.account.changePaw","\u4FEE\u6539\u5BC6\u7801"))+" ")])])])],1),o("el-divider"),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",{staticClass:"grid-content bd",staticStyle:{color:"rgba(0, 0, 0, .45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.bindenterpriseWechat","\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"))+" ")])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content state"},[e._v(" "+e._s(e.$i18nt("gd.account.currentState","\u5F53\u524D\u72B6\u6001"))+":"+e._s(e.wxUserId==null||e.wxUserId==""?e.$i18nt("gd.state.no","\u5426"):e.$i18nt("gd.state.yes","\u662F"))+" ")])]),e.wxUserId==null||e.wxUserId==""?o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-content paw grid-flex"},[o("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.bind}},[e._v(e._s(e.$i18nt("gd.account.bind","\u7ED1\u5B9A")))])])]):e._e()],1),o("upd-pwd",{ref:"updPwd",attrs:{isShow:e.isShow},on:{bindCode:e.bindCode}}),o("weChatBind",{ref:"weChatBind",on:{bindCode:e.bindCode}})],1)},$t=[],It=M.normalizeComponent(bt,_t,$t,!1,null,"6ac33441",null,null);const B=It.exports;B.install=function(r){r.component(B.name,B)};exports.GDpackage=W;exports.GDpackage$1=P;exports.GDpackage$2=B;exports.GDpackage$3=H;exports.SysMenuTreeForGrant=it;exports.applyResetPassword=Ee;exports.bindWechatWorkAccount=Ue;exports.changeUserBUJob=Pe;exports.checkPRCValidation=Oe;exports.colorList=F;exports.commonjsGlobal=Fe;exports.getAppListByAppsId=ce;exports.getAugmentedNamespace=Ye;exports.getConfigInfoByCode=N;exports.getConfigsByCode=D;exports.getDefaultExportFromCjs=Xe;exports.getLoginUserV2=re;exports.getPasswordRules=Y;exports.getUserManage=He;exports.getUserPage=ve;exports.login=K;exports.loginByWeChatWork=Me;exports.logout=Q;exports.oauthAuthorize=se;exports.oauthCodeLogin=ie;exports.postbindUsersToRole=Be;exports.postunbindUsersFromRole=Re;exports.resetPwdByAccount=Te;exports.sysAppAdd=le;exports.sysAppChangeStatus=he;exports.sysAppDelete=de;exports.sysAppEdit=ue;exports.sysBookmarkAdd=oe;exports.sysBookmarkDelete=ne;exports.sysBookmarkPage=te;exports.sysMenuAddV2=nt;exports.sysMenuDelete=ot;exports.sysMenuDetail=rt;exports.sysMenuEdit=st;exports.sysMenuListByAppsId=ct;exports.sysUserAdd=we;exports.sysUserChangeRole=Ce;exports.sysUserChangeStatus=be;exports.sysUserEdit=ye;exports.sysUserExport=ke;exports.sysUserImport=Ae;exports.sysUserOwnRole=xe;exports.sysUserResetPwd=_e;exports.sysUserSelector=$e;exports.updatePwdByAccount=z;
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),i=this.mode.split(" ");switch(i[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 s=i[0];if(s.search("px")!==-1&&(s=s.replace("px",""),n=parseFloat(s)/this.trueWidth),s.search("%")!==-1&&(s=s.replace("%",""),n=parseFloat(s)/100*this.w/this.trueWidth),i.length===2&&s==="auto"){var l=i[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 i=this.w,s=this.h;if(this.centerBox){var l=this.trueWidth*this.scale,f=this.trueHeight*this.scale;i=l<i?l:i,s=f<s?f:s}var m=n||parseFloat(this.autoCropWidth),b=t||parseFloat(this.autoCropHeight);m!==0&&b!==0||(m=.8*i,b=.8*s),m=m>i?i:m,b=b>s?s:b,this.fixed&&(b=m/this.fixedNumber[0]*this.fixedNumber[1]),b>this.h&&(m=(b=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(m,b)}},changeCrop:function(n,t){var i=this;if(this.centerBox){var s=this.getImgAxis();n>s.x2-s.x1&&(t=(n=s.x2-s.x1)/this.fixedNumber[0]*this.fixedNumber[1]),t>s.y2-s.y1&&(n=(t=s.y2-s.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=n,this.cropH=t,this.checkCropLimitSize(),this.$nextTick(function(){i.cropOffsertX=(i.w-i.cropW)/2,i.cropOffsertY=(i.h-i.cropH)/2,i.centerBox&&i.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,i){n=n||this.x,t=t||this.y,i=i||this.scale;var s=!0;if(this.centerBox){var l=this.getImgAxis(n,t,i),f=this.getCropAxis();l.x1>=f.x1&&(s=!1),l.x2<=f.x2&&(s=!1),l.y1>=f.y1&&(s=!1),l.y2<=f.y2&&(s=!1)}return s}},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(i,s,l){for(var f=atob(this.toDataURL(s,l).split(",")[1]),m=f.length,b=new Uint8Array(m),x=0;x<m;x++)b[x]=f.charCodeAt(x);i(new Blob([b],{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)}};d(1);var A=function(n,t,i,s,l,f,m,b){var x,c=typeof n=="function"?n.options:n;if(t&&(c.render=t,c.staticRenderFns=i,c._compiled=!0),s&&(c.functional=!0),f&&(c._scopeId="data-v-"+f),m?(x=function(g){(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=b?function(){l.call(this,this.$root.$options.shadowRoot)}:l),x)if(c.functional){c._injectStyles=x;var u=c.render;c.render=function(g,w){return x.call(w),u(g,w)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,x):[x]}return{exports:n,options:c}}(I,h,[],!1,null,"6dae58fd",null);A.options.__file="src/vue-cropper.vue";var k=A.exports;d.d(a,"VueCropper",function(){return k});var L=function(n){n.component("VueCropper",k)};typeof window<"u"&&window.Vue&&L(window.Vue),a.default={version:"0.5.5",install:L,VueCropper:k,vueCropper:k}}])})})(j);const ze={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:j.exports.VueCropper},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},edit(r){this.fullscreen=!1,this.visible=!0,this.id=r},close(){this.id=null,this.visible=!1},cancelHandel(){this.close()},changeScale(r){r=r||1,this.$refs.cropper.changeScale(r)},rotateLeft(){this.$refs.cropper.rotateLeft()},rotateRight(){this.$refs.cropper.rotateRight()},beforeUpload(r){this.fileList=r;const e=new FileReader;return e.readAsDataURL(r),e.onload=()=>{this.options.img=e.result},!1},finish(r){r==="blob"?(this.uploading=!0,this.$refs.cropper.getCropBlob(e=>{const o=new window.File([e],this.fileList.name,{type:this.fileList.type}),a=new FormData;a.append("file",o),R.sysFileInfoUploadAvatar(a).then(d=>{d.success?this.updateAvatar(d.data):(this.uploading=!1,this.$message.error(d.message))})})):this.$refs.cropper.getCropData(e=>{})},updateAvatar(r){const e={id:this.id,avatar:r};fe(e).then(o=>{this.uploading=!1,o.success?(this.visible=!1,this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.$emit("ok",r)}).catch(o=>{this.$emit("ok",r)})},realTime(r){this.previews=r},doEvent(r){let e=r.item.functionName;this[e]&&this[e]()}}};var Ne=function(){var e=this,o=e._self._c;return o("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.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}},[o("gd-modal-title",{attrs:{slot:"title",title:e.$i18nt("gd.account.modifyavatar","\u4FEE\u6539\u5934\u50CF"),fullscreen:e.fullscreen,buttons:[],confirmLoading:e.confirmLoading,showClose:!0,closed:"cancelHandel"},on:{changeEvent:e.doEvent},slot:"title"}),o("div",{staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body"},[o("el-row",[o("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[o("vue-cropper",{ref:"cropper",attrs:{img:e.options.img,info:!0,autoCrop:e.options.autoCrop,autoCropWidth:e.options.autoCropWidth,autoCropHeight:e.options.autoCropHeight,fixedBox:e.options.fixedBox},on:{realTime:e.realTime}})],1),o("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[o("div",{staticClass:"avatar-upload-preview"},[o("img",{style:e.previews.img,attrs:{src:e.previews.url}})])])],1),o("br"),o("el-row",[o("el-col",{attrs:{lg:3,md:3}},[o("el-upload",{attrs:{name:"file",action:"",beforeUpload:e.beforeUpload,showUploadList:!1}},[o("el-button",{staticClass:"el-icon-upload2"},[e._v(e._s(e.$i18nt("gd.account.selectPicture","\u9009\u62E9\u56FE\u7247")))])],1)],1),o("el-col",{attrs:{lg:{span:1,offset:2},md:2}},[o("el-button",{staticClass:"el-icon-plus",on:{click:function(a){return e.changeScale(1)}}})],1),o("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[o("el-button",{staticClass:"el-icon-minus",on:{click:function(a){return e.changeScale(-1)}}})],1),o("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[o("el-button",{staticClass:"el-icon-refresh-left",on:{click:e.rotateLeft}})],1),o("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[o("el-button",{staticClass:"el-icon-refresh-right",on:{click:e.rotateRight}})],1),o("el-col",{attrs:{lg:{span:2,offset:6},md:2}},[o("el-button",{attrs:{type:"primary",loading:e.uploading},on:{click:function(a){return e.finish("blob")}}},[e._v(" "+e._s(e.$i18nt("gd.btn.save"))+" ")])],1)],1)],1)],1)},De=[],je=M.normalizeComponent(ze,Ne,De,!1,null,"1fe51f00",null,null);const Ge=je.exports;function Ve(r){return window.axios({url:"/sysLanguage/page",method:"get",params:r})}function qe(r){return window.axios({url:"/sysCurrency/page",method:"get",params:r})}function Ze(r){return window.axios({url:"/sysTimezone/page",method:"get",params:r})}const Je={props:{height:{type:Number,default:100}},name:"GdBaseSettings",components:{AvatarModal:Ge},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},...M.mapGetters(["userInfo","locale","language"])},mounted(){this.initUserInfo()},methods:{changeLanguage(r){let e=this.langData.filter(o=>o.id==r)[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(r=>{this.option.img=window.URL.createObjectURL(new Blob([r]))}).catch(r=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+r.message)}):this.option.img="/avatar2.jpg",this.getSexData(),this.spinning=!1},100)},onChange(r,e){console.log(r),this.birthdayString=r},currencyChange(){qe().then(r=>{r.success&&(this.currencyData=r.data.rows,J.default.ls.set("currencyData",r.data.rows))})},timezoneChange(){Ze().then(r=>{r.success&&(this.timezoneData=r.data.rows)})},languageChange(){Ve().then(r=>{r.success&&(this.langData=r.data.rows)})},submitUserInfo(){this.spinning||this.$refs.ruleForm.validate(r=>{r&&(this.spinning=!0,this.ruleForm.birthday=this.birthdayString,this.ruleForm.id=this.userInfo.id,me(this.ruleForm).then(e=>{if(e.success){let o=this.langData.filter(a=>a.id==this.ruleForm.languageId)[0];this.$store.dispatch("Language",o.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(r){R.sysFileInfoPreview({id:r}).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 Ke=function(){var e=this,o=e._self._c;return o("div",{staticClass:"account-settings-info-view",staticStyle:{height:"100px"}},[o("el-row",{attrs:{gutter:16}},[o("el-col",{attrs:{md:24,lg:16}},[o("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[o("el-form-item",{attrs:{label:e.$i18nt("gd.account.nickname","\u6635\u79F0"),prop:"nickName"}},[o("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.nickName,callback:function(a){e.$set(e.ruleForm,"nickName",a)},expression:"ruleForm.nickName"}})],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.birthday","\u751F\u65E5"),prop:"birthday",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.onChange},model:{value:e.ruleForm.birthday,callback:function(a){e.$set(e.ruleForm,"birthday",a)},expression:"ruleForm.birthday"}})],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.sex","\u6027\u522B"),prop:"gender",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-radio-group",{model:{value:e.ruleForm.gender,callback:function(a){e.$set(e.ruleForm,"gender",a)},expression:"ruleForm.gender"}},e._l(e.sexData,function(a,d){return o("el-radio",{key:d,attrs:{label:a.code}},[e._v(" "+e._s(a.name)+" ")])}),1)],1),o("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"}]}},[o("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),o("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.account.tel","\u7535\u8BDD"),prop:"tel"}},[o("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.tel,callback:function(a){e.$set(e.ruleForm,"tel",a)},expression:"ruleForm.tel"}})],1),o("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"]}]}},[o("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),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.language","\u9ED8\u8BA4\u8BED\u8A00"),prop:"languageId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{select:e.changeLanguage},model:{value:e.ruleForm.languageId,callback:function(a){e.$set(e.ruleForm,"languageId",a)},expression:"ruleForm.languageId"}},e._l(e.langData,function(a,d){return o("el-option",{key:d,attrs:{value:a.id,label:a.name}})}),1)],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.currency","\u9ED8\u8BA4\u8D27\u5E01"),prop:"currencyId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.currencyId,callback:function(a){e.$set(e.ruleForm,"currencyId",a)},expression:"ruleForm.currencyId"}},e._l(e.currencyData,function(a,d){return o("el-option",{key:d,attrs:{value:a.id,label:a.name}})}),1)],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.timeZone","\u9ED8\u8BA4\u65F6\u533A"),prop:"timezoneId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.timezoneId,callback:function(a){e.$set(e.ruleForm,"timezoneId",a)},expression:"ruleForm.timezoneId"}},e._l(e.timezoneData,function(a,d){return o("el-option",{key:d,attrs:{value:a.id,label:a.name}})}),1)],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.submitUserInfo}},[e._v(" "+e._s(e.$i18nt("gd.account.updateInformation","\u66F4\u65B0\u57FA\u672C\u4FE1\u606F"))+" ")])],1)],1)],1),o("el-col",{style:{minHeight:"180px"},attrs:{md:24,lg:8}},[o("div",{staticClass:"ant-upload-preview",on:{click:function(a){return e.$refs.modal.edit(e.userInfo.id)}}},[o("i",{staticClass:"el-icon-upload upload-icon"}),o("div",{staticClass:"mask"},[o("i",{staticClass:"el-icon-plus"})]),o("img",{attrs:{src:e.option.img}})])])],1),o("avatar-modal",{ref:"modal",on:{ok:e.setavatar}})],1)},Qe=[],et=M.normalizeComponent(Je,Ke,Qe,!1,null,"685efc26",null,null);const P=et.exports;P.install=function(r){r.component(P.name,P)};function tt(r){return window.axios({url:"/sysMenu/list",method:"get",params:r})}function nt(r){return window.axios({url:"/sysMenu/v2/add",method:"post",data:r})}function ot(r){return window.axios({url:"/sysMenu/delete",method:"post",data:r})}function rt(r){return window.axios({url:"/sysMenu/detail",method:"post",data:r})}function st(r){return window.axios({url:"/sysMenu/edit",method:"post",data:r})}function it(r){return window.axios({url:"/sysMenu/treeForGrant",method:"get",params:r})}function at(r){return window.axios({url:"/sysMenu/change",method:"post",data:r})}function ct(r){return window.axios({url:"/sysMenu/listByAppsId",method:"post",params:r})}const lt={name:"GdCustomSettings",data(){return{colorList:F,options:[],homePage:["uvgsxjpu","ujhmcamph","uwcscihbx"],account:"",echartsList:[],value:0,primaryColors:this.primaryColor,propOptions:[],propOptionsOld:[],list:null,listOptions:[],listOptionsOld:[],presentText:[]}},computed:{predefine(){let r=[];return F.forEach(e=>{r.push(e.color)}),r},...M.mapGetters(["userInfo","addRouters","theme","primaryColor","echartsColor","systemInfo"])},watch:{primaryColor(){this.primaryColors=this.primaryColor}},methods:{okColor(r){this.$store.dispatch("EchartsColor",r),this.echartsList=[...r]},getColor(){this.echartsList=[...this.echartsColor]},renew(){let r=this,e=this.homePage,o=!1;if(e.length==0&&(o=!0),e.length>1&&(o=!0),!o){r.$message.error(r.$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,d,h)=>{this.renewHand(a,d,h,this.homePage)}})},renewHand(r,e,o,a){if(r!=="confirm"){o();return}let d=[],h=ye({configTheme:a.join(",")}).then(y=>y);d.push(h),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(d).then(y=>{o(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const $=y.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(r,e){const{level:o,value:a}=r;if(this.options.length===0){this.geData().then(()=>{if(this.presentText.length<this.homePage.length){const d=this.options.filter(h=>h.code===this.homePage[0])[0];this.presentText=d?this.presentText.concat([d.label]):this.presentText}e(this.options)});return}this.getMenuListAll(a).then(d=>{if(this.presentText.length<this.homePage.length&&o===2){this.presentText=this.presentText.concat([r.label]);const y=r.children.filter($=>$.value===this.homePage[o])[0];this.presentText=y?this.presentText.concat([y.label]):this.presentText}const h=this.$refs.cascader.presentText;this.presentText.length===this.homePage.length&&h===null&&(this.$refs.cascader.presentText=this.presentText.join(" / ")),e(d)})},geData(){return Te({}).then(r=>{if(r.success){let e=r.data.map(o=>{let a=this.userInfo.apps.filter(d=>d.code==o.code)[0];if(a!=null)return o.leaf=a==null,o.value=o.code,o.label=this.$i18nt(`Dynamics.${o.transkey}`,o.name),o.loading=!1,o});return e=e.filter(o=>o!==void 0),this.options=[...e],this.listOptionsOld=JSON.stringify(e),new Promise(o=>{o()})}})},getMenuListAll(r){return Promise.all([this.getMenuList({application:r}),this.sysMenuChange({application:r})]).then(e=>{let o=e[0].data,a=e[1].data;return o.map((d,h)=>{let y=a.filter($=>$.path==d.router);return o[h].value=d.router,o[h].label=this.$i18nt(`Dynamics.${d.transkey}`,d.name),o[h].leaf=d.children.length==0,o[h].disabled=y.length==0,d.children.length==0?o[h].children=null:d.children.map(($,I)=>{let A=a.filter(k=>k.path==$.router);o[h].children[I].value=$.router,o[h].children[I].label=this.$i18nt(`Dynamics.${$.transkey}`,$.name),o[h].children[I].children=[],o[h].children[I].leaf=!0,o[h].children[I].disabled=A.length==0}),d}),o.map(d=>{d.children=d.children?d.children.filter(h=>h.disabled==!1):[]}),o})},getMenuList(r){return tt(r).then(e=>e)},sysMenuChange(r){return at(r).then(e=>e)},onChangeCascader(r){const e=this.$refs.cascader.presentText;this.presentText=e!==null?e.split(" / "):[]},onChange(r){r?this.$store.dispatch("ToggleTheme","dark"):this.$store.dispatch("ToggleTheme","light")},async changeColor(r){const e=this,o=this.primaryColor;if(typeof r!="string")return;const a=this.$message({message:e.$i18nt("gd.theme.switchingTopics"),duration:0,iconClass:"el-icon-loading"}),d=this.getThemeCluster(r.replace("#","")),h=this.getThemeCluster(o.replace("#","")),y=(A,k)=>()=>{const L=this.getThemeCluster(this.primaryColor.replace("#","")),n=this.updateStyle(this[A],L,d);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(A=>{this.chalk=A.default}),y("chalk","chalk-style")(),[].slice.call(document.querySelectorAll("style")).filter(A=>{const k=A.innerText;return new RegExp(o,"i").test(k)&&!/Chalk Variables/.test(k)}).forEach(A=>{const{innerText:k}=A;typeof k=="string"&&(A.innerText=this.updateStyle(k,h,d))}),this.$store.dispatch("ToggleColor",r),window.document.body.style=`--color:${r}`,this.$nextTick(()=>{setTimeout(()=>{a.close()},200)})},updateStyle(r,e,o){let a=r;return e.forEach((d,h)=>{a=a.replace(new RegExp(d,"ig"),o[h])}),a},getThemeCluster(r){const e=(d,h)=>{let y=parseInt(d.slice(0,2),16),$=parseInt(d.slice(2,4),16),I=parseInt(d.slice(4,6),16);return h===0?[y,$,I].join(","):(y+=Math.round(h*(255-y)),$+=Math.round(h*(255-$)),I+=Math.round(h*(255-I)),y=y.toString(16),$=$.toString(16),I=I.toString(16),`#${y}${$}${I}`)},o=(d,h)=>{let y=parseInt(d.slice(0,2),16),$=parseInt(d.slice(2,4),16),I=parseInt(d.slice(4,6),16);return y=Math.round((1-h)*y),$=Math.round((1-h)*$),I=Math.round((1-h)*I),y=y.toString(16),$=$.toString(16),I=I.toString(16),`#${y}${$}${I}`},a=[r];for(let d=0;d<=9;d++)a.push(e(r,Number((d/10).toFixed(2))));return a.push(o(r,.1)),a},traverse(r,e){let o=null;const a=d=>(d=d.filter((h,y)=>(h.children&&h.children.length>0&&a(h.children),h.value==r&&(o={...h}),!0)),d);return a(this.propOptions),o}},mounted(){this.getColor(),this.init(),this.primaryColor&&(this.primaryColors=this.primaryColor)}};var ut=function(){var e=this,o=e._self._c;return o("div",{staticStyle:{"padding-top":"12px"}},[o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",[e._v(e._s(e.$i18nt("gd.settings.overallStyle","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")))])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.overallStyleTip","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-content paw grid-flex"},[o("el-switch",{attrs:{"active-text":e.$i18nt("gd.settings.darkness","\u767D\u8272"),"active-color":e.primaryColor,"inactive-text":e.$i18nt("gd.settings.white","\u6697\u8272"),"active-value":1,"inactive-value":0},on:{change:e.onChange},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}})],1)])],1),o("el-divider"),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",[e._v(e._s(e.$i18nt("gd.settings.theme","\u4E3B\u9898\u8272")))])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.themeTip","\u9875\u9762\u4E3B\u9898\u914D\u8272"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-content paw grid-flex"},[o("el-color-picker",{ref:"colorPicker",staticClass:"theme-picker",attrs:{size:"small",predefine:e.predefine,"popper-class":"theme-picker-dropdown"},on:{change:e.changeColor},model:{value:e.primaryColors,callback:function(a){e.primaryColors=a},expression:"primaryColors"}})],1)])],1),o("el-divider"),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",[e._v(e._s(e.$i18nt("gd.settings.echartsColor","\u56FE\u8868\u8272")))])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.echartsColorStyle","\u56FE\u8868\u98CE\u683C\u914D\u8272"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-flex"},[e._l(e.echartsList,function(a,d){return[o("el-tooltip",{staticClass:"setting-drawer-theme-color-colorBlock",attrs:{content:a===0?e.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"):a}},[o("el-tag",{attrs:{color:a===0?e.primaryColor:a}})],1)]}),o("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),o("el-divider"),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",[e._v(e._s(e.$i18nt("gd.settings.homepage","\u4E2A\u4EBA\u9996\u9875")))])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.homepageTip","\u914D\u7F6E\u540E\u7528\u6237\u767B\u5F55\u76F4\u63A5\u8FDB\u5165\u4E2A\u4EBA\u9996\u9875"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-flex"},[o("el-cascader",{ref:"cascader",staticStyle:{width:"240px"},attrs:{clearable:"",props:{lazy:!0,lazyLoad:e.lazyLoad}},on:{change:e.onChangeCascader},model:{value:e.homePage,callback:function(a){e.homePage=a},expression:"homePage"}}),o("span",{staticClass:"active-color",staticStyle:{"margin-left":"10px",cursor:"pointer"},on:{click:e.renew}},[e._v(" "+e._s(e.$i18nt("gd.btn.update","\u66F4\u65B0"))+" ")])],1)])],1),o("el-divider"),o("gd-color-editor",{ref:"echartsTheme",on:{ok:e.okColor}})],1)},dt=[],ht=M.normalizeComponent(lt,ut,dt,!1,null,"b784faab",null,null);const H=ht.exports;H.install=function(r){r.component(H.name,H)};const pt={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")},...M.mapGetters(["labelPosition"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(r,e,o){this.fullscreen=!1,this.userId=r,this.code=e,this.num=o,this.num==1?this.getConfigInfo():this.$nextTick(()=>{this.formUpdPwd.setFieldsValue({account:this.userId})}),this.visible=!0},getConfigInfo(r){Y().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(r=>{if(r){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?z:Ie)(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(r,e,o){e&&e!==this.ruleForm.newPassword?o(this.$i18nt("gd.account.repeatPawTiperr"," \u8BF7\u786E\u8BA4\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u7684\u4E00\u81F4\u6027")):o()},oldtPassword(r,e,o){e&&e===this.ruleForm.password?o(this.$i18nt("gd.account.repeatPawTipodl","\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")):o()},doEvent(r){let e=r.item.functionName;this[e]&&this[e]()}}};var gt=function(){var e=this,o=e._self._c;return o("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.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}},[o("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent},slot:"title"}),o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body",staticStyle:{margin:"10px 10px 10px"}},[o("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":e.labelPosition},nativeOn:{submit:function(a){a.preventDefault()}}},[e.num==1?o("div",[o("el-form-item",{attrs:{label:e.$i18nt("gd.account.originalPaw","\u539F\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input")}]}},[o("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1),o("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}]}},[o("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.newPassword,callback:function(a){e.$set(e.ruleForm,"newPassword",a)},expression:"ruleForm.newPassword"}})],1),o("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}]}},[o("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.confirm,callback:function(a){e.$set(e.ruleForm,"confirm",a)},expression:"ruleForm.confirm"}})],1)],1):o("div",[o("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")}]}},[o("el-input",{attrs:{placeholder:e.$i18nt("gd.login.account","\u8BF7\u8F93\u5165\u8D26\u53F7"),disabled:e.disabled},model:{value:e.ruleForm.account,callback:function(a){e.$set(e.ruleForm,"account",a)},expression:"ruleForm.account"}})],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.login.password","\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[o("el-input",{attrs:{maxlength:18,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),"show-password":""},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1)],1)])],1)],1)},ft=[],mt=M.normalizeComponent(pt,gt,ft,!1,null,"1d4e1c11",null,null);const G=mt.exports;const vt={props:{isClear:{type:Number,default:1}},components:{UpdPwd:G},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"):""},...M.mapGetters(["userInfo","language","primaryColor"])},mounted(){},methods:{open(r,e){this.num=e,this.visible=!0,this.titleWidth=this.language=="zh_CN"?350+"px":504+"px",this.num==1&&this.getWeChat(r)},getWeChat(r){let e=this;r.data.forEach((o,a)=>{o.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(e.appId=o.value),o.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(e.agentId=o.value),o.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(e.redirectURL=o.value)}),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:o}){e.isWeComLogin=o,e.num1=e.isWeComLogin==!0?1:0},onLoginSuccess({code:o}){e.code=o,e.$refs.updPwd.open(e.userInfo.account,o,2),e.visible=!1},onLoginFail(o){}})},500)},handleCancel(){this.confirmLoading=!1,this.visible=!1,this.$refs.wx_qrcode.innerHTML=""}}};var wt=function(){var e=this,o=e._self._c;return o("div",[o("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",attrs:{visible:e.visible,width:e.titleWidth,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[o("div",{staticClass:"main",style:e.style},[e.num==1?o("div",[o("div",{ref:"wx_qrcode",style:e.num1==0?"height: 290px;":"height: 290px",attrs:{id:"wx_qrcode"}}),o("div",{class:e.num1==0?"div_top":"div_topno"}),o("div",{class:e.num1==0?"div_bottom":""})]):e._e()])]),o("upd-pwd",{ref:"updPwd"})],1)},yt=[],xt=M.normalizeComponent(vt,wt,yt,!1,null,"55ede8aa",null,null);const Ct=xt.exports;const bt={name:"GdSecuritySettings",components:{UpdPwd:G,weChatBind:Ct},data(){return{isShow:!1,num:0,wxUserId:null,obj:{},appId:"",agentId:"",redirectURL:"",enterpriseNum:0,bindTitle:"\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1",dicsTitle:""}},watch:{language(r,e){this.changeLanguage()},userInfo(r,e){this.changUserInfo()}},created(){this.init()},mounted(){},computed:{...M.mapGetters(["userInfo","language"])},methods:{updPwd(){this.$refs.updPwd.open(this.userInfo.account,null,1)},bind(){this.$refs.weChatBind.open(this.obj,1)},getConfigInfo(){N({code:"GDS_ENTERPRISE_WECHAT_LOGIN"}).then(e=>{this.enterpriseNum=e.data.value})},getConfigsBy(){D({strCodes:"GDS_ENTERPRISE_WECHAT_CropID,GDS_ENTERPRISE_WECHAT_AgentId,GDS_ENTERPRISE_WECHAT_Redirect_URL"}).then(e=>{e.success&&(this.obj=e)})},getData(){ee().then(r=>{this.wxuserid=r.data.wxuserid})},changeLanguage(){this.init()},changUserInfo(){this.init()},init(){this.wxuserid=this.userInfo.wxuserid,this.getConfigInfo(),this.getData(),this.getConfigsBy()},getWeChat(r,e){let o=this;r.data.forEach((a,d)=>{a.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(o.appId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(o.agentId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(o.redirectURL=a.value)}),setTimeout(()=>{o.wwLogin=ww.createWWLoginPanel({el:"#wx_qrcode",params:{login_type:"CorpApp",appid:o.appId,agentid:o.agentId,redirect_uri:o.redirectURL,state:"loginState",redirect_type:"callback",panel_size:"middle",lang:e=="zh_CN"?"zh":"en"},onCheckWeComLogin({isWeComLogin:a}){console.log(a)},onLoginSuccess({code:a}){o.code=a,o.$refs.updPwd.open(o.userInfo.account,a,2),console.log(a)},onLoginFail(a){}})},500)},bindCode(r){r==1||r==0?this.getData():r==-1?this.getConfigsBy():r==2&&this.getConfigsBy()}}};var _t=function(){var e=this,o=e._self._c;return o("div",{staticStyle:{"padding-top":"12px"}},[o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",{staticClass:"grid-content bg-purple"},[e._v(" "+e._s(e.$i18nt("gd.account.passWord","\u8D26\u6237\u5BC6\u7801"))+" ")])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, .45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.strength","\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6"))+":"+e._s(e.$i18nt("gd.account.strong","\u5F3A"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-content paw grid-flex"},[o("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.updPwd}},[e._v(" "+e._s(e.$i18nt("gd.account.changePaw","\u4FEE\u6539\u5BC6\u7801"))+" ")])])])],1),o("el-divider"),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",{staticClass:"grid-content bd",staticStyle:{color:"rgba(0, 0, 0, .45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.bindenterpriseWechat","\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"))+" ")])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content state"},[e._v(" "+e._s(e.$i18nt("gd.account.currentState","\u5F53\u524D\u72B6\u6001"))+":"+e._s(e.wxUserId==null||e.wxUserId==""?e.$i18nt("gd.state.no","\u5426"):e.$i18nt("gd.state.yes","\u662F"))+" ")])]),e.wxUserId==null||e.wxUserId==""?o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-content paw grid-flex"},[o("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.bind}},[e._v(e._s(e.$i18nt("gd.account.bind","\u7ED1\u5B9A")))])])]):e._e()],1),o("upd-pwd",{ref:"updPwd",attrs:{isShow:e.isShow},on:{bindCode:e.bindCode}}),o("weChatBind",{ref:"weChatBind",on:{bindCode:e.bindCode}})],1)},$t=[],It=M.normalizeComponent(bt,_t,$t,!1,null,"bab5209a",null,null);const B=It.exports;B.install=function(r){r.component(B.name,B)};exports.GDpackage=W;exports.GDpackage$1=P;exports.GDpackage$2=B;exports.GDpackage$3=H;exports.SysMenuTreeForGrant=it;exports.applyResetPassword=Ce;exports.bindWechatWorkAccount=$e;exports.changeUserBUJob=Se;exports.checkPRCValidation=be;exports.colorList=F;exports.commonjsGlobal=Fe;exports.getAppListByAppsId=Ee;exports.getAugmentedNamespace=Ye;exports.getConfigInfoByCode=N;exports.getConfigsByCode=D;exports.getDefaultExportFromCjs=Xe;exports.getLoginUserV2=re;exports.getPasswordRules=Y;exports.getUserManage=ke;exports.getUserPage=ae;exports.login=K;exports.loginByWeChatWork=_e;exports.logout=Q;exports.oauthAuthorize=se;exports.oauthCodeLogin=ie;exports.postbindUsersToRole=Ae;exports.postunbindUsersFromRole=Le;exports.resetPwdByAccount=xe;exports.sysAppAdd=Oe;exports.sysAppChangeStatus=We;exports.sysAppDelete=Ue;exports.sysAppEdit=Me;exports.sysBookmarkAdd=oe;exports.sysBookmarkDelete=ne;exports.sysBookmarkPage=te;exports.sysMenuAddV2=nt;exports.sysMenuDelete=ot;exports.sysMenuDetail=rt;exports.sysMenuEdit=st;exports.sysMenuListByAppsId=ct;exports.sysUserAdd=ce;exports.sysUserChangeRole=de;exports.sysUserChangeStatus=he;exports.sysUserEdit=le;exports.sysUserExport=ve;exports.sysUserImport=we;exports.sysUserOwnRole=ue;exports.sysUserResetPwd=pe;exports.sysUserSelector=ge;exports.updatePwdByAccount=z;