diff --git a/sop-website/sop-website-server/src/main/java/com/gitee/sop/websiteserver/controller/IsvController.java b/sop-website/sop-website-server/src/main/java/com/gitee/sop/websiteserver/controller/IsvController.java index 4e1da32e..c6c8c13d 100644 --- a/sop-website/sop-website-server/src/main/java/com/gitee/sop/websiteserver/controller/IsvController.java +++ b/sop-website/sop-website-server/src/main/java/com/gitee/sop/websiteserver/controller/IsvController.java @@ -93,7 +93,8 @@ public class IsvController { public Result uploadPublicKey(@RequestBody @Valid IsvPublicKeyUploadParam param) { String publicKeyIsv = param.getPublicKeyIsv(); LoginUser loginUser = UserContext.getLoginUser(); - IsvKeys isvKeys = userService.getIsvKeys(loginUser.getAppKey()); + String appKey = loginUser.getAppKey(); + IsvKeys isvKeys = userService.getIsvKeys(appKey); RSATool rsaToolIsv = new RSATool(RSATool.KeyFormat.PKCS8, RSATool.KeyLength.LENGTH_2048); RSATool.KeyStore keyStorePlatform; try { @@ -106,7 +107,7 @@ public class IsvController { String privateKeyPlatform = keyStorePlatform.getPrivateKey(); if (isvKeys == null) { isvKeys = new IsvKeys(); - isvKeys.setAppKey(loginUser.getAppKey()); + isvKeys.setAppKey(appKey); // 私钥自己保存 isvKeys.setPrivateKeyIsv(""); isvKeys.setPublicKeyIsv(publicKeyIsv); @@ -124,6 +125,7 @@ public class IsvController { isvPublicKeyUploadResult.setIsUploadPublicKey(BooleanUtils.toInteger(true)); isvPublicKeyUploadResult.setPublicKeyIsv(isvKeys.getPublicKeyIsv()); isvPublicKeyUploadResult.setPublicKeyPlatform(isvKeys.getPublicKeyPlatform()); + userService.sendChannelMsg(appKey); return Result.ok(isvPublicKeyUploadResult); } diff --git a/sop-website/sop-website-server/src/main/java/com/gitee/sop/websiteserver/service/UserService.java b/sop-website/sop-website-server/src/main/java/com/gitee/sop/websiteserver/service/UserService.java index 37b4c0fc..c85cc32a 100644 --- a/sop-website/sop-website-server/src/main/java/com/gitee/sop/websiteserver/service/UserService.java +++ b/sop-website/sop-website-server/src/main/java/com/gitee/sop/websiteserver/service/UserService.java @@ -2,6 +2,7 @@ package com.gitee.sop.websiteserver.service; import com.gitee.fastmybatis.core.query.Query; import com.gitee.sop.gatewaycommon.bean.NacosConfigs; +import com.gitee.sop.gatewaycommon.sync.MyNamedThreadFactory; import com.gitee.sop.gatewaycommon.util.CopyUtil; import com.gitee.sop.websiteserver.bean.ChannelMsg; import com.gitee.sop.websiteserver.bean.ChannelOperation; @@ -25,6 +26,9 @@ import org.springframework.stereotype.Service; import java.text.SimpleDateFormat; import java.util.Date; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; /** * @author tanghc @@ -35,6 +39,10 @@ public class UserService { public static final byte STATUS_ENABLE = 1; + private final ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(4, 4, + 0L,TimeUnit.MILLISECONDS, + new LinkedBlockingQueue<>(), new MyNamedThreadFactory("push-thread")); + @Autowired private UserAccountMapper userAccountMapper; @@ -81,16 +89,17 @@ public class UserService { */ public void updateIsvKey(IsvKeys isvKeys) { isvKeysMapper.updateIgnoreNull(isvKeys); - this.sendChannelMsg(isvKeys.getAppKey()); } - private void sendChannelMsg(String appKey) { - IsvDetailDTO isvDetail = isvInfoMapper.getIsvDetail(appKey); - if (isvDetail == null) { - return; - } - ChannelMsg channelMsg = new ChannelMsg(ChannelOperation.ISV_INFO_UPDATE, isvDetail); - configPushService.publishConfig(NacosConfigs.DATA_ID_ISV, NacosConfigs.GROUP_CHANNEL, channelMsg); + public void sendChannelMsg(String appKey) { + threadPoolExecutor.execute(() -> { + IsvDetailDTO isvDetail = isvInfoMapper.getIsvDetail(appKey); + if (isvDetail == null) { + return; + } + ChannelMsg channelMsg = new ChannelMsg(ChannelOperation.ISV_INFO_UPDATE, isvDetail); + configPushService.publishConfig(NacosConfigs.DATA_ID_ISV, NacosConfigs.GROUP_CHANNEL, channelMsg); + }); } public LoginUser getLoginUser(String username, String password) { diff --git a/sop-website/sop-website-server/src/main/resources/public/index.html b/sop-website/sop-website-server/src/main/resources/public/index.html index 5147f81d..1b973822 100644 --- a/sop-website/sop-website-server/src/main/resources/public/index.html +++ b/sop-website/sop-website-server/src/main/resources/public/index.html @@ -1 +1 @@ -开放平台
\ No newline at end of file +开放平台
\ No newline at end of file diff --git a/sop-website/sop-website-server/src/main/resources/public/static/css/chunk-3cffc9a9.c94c4e9c.css b/sop-website/sop-website-server/src/main/resources/public/static/css/chunk-eaa69404.04f4b7fb.css similarity index 62% rename from sop-website/sop-website-server/src/main/resources/public/static/css/chunk-3cffc9a9.c94c4e9c.css rename to sop-website/sop-website-server/src/main/resources/public/static/css/chunk-eaa69404.04f4b7fb.css index bb3643c9..9365469f 100644 --- a/sop-website/sop-website-server/src/main/resources/public/static/css/chunk-3cffc9a9.c94c4e9c.css +++ b/sop-website/sop-website-server/src/main/resources/public/static/css/chunk-eaa69404.04f4b7fb.css @@ -1 +1 @@ -@supports (-webkit-mask:none) and (not (cater-color:#000)){.login-container .el-input input{color:#000}}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;-webkit-appearance:none;border-radius:0;padding:12px 5px 12px 15px;color:#000;height:47px;caret-color:#000}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset!important;box-shadow:inset 0 0 0 1000px #fff!important;-webkit-text-fill-color:#000!important}.login-container .el-form-item{border:1px solid #d3dce6;border-radius:5px;color:#454545}.login-container[data-v-0b530f82]{min-height:100%;width:100%;overflow:hidden}.login-container .login-form[data-v-0b530f82]{position:relative;width:520px;max-width:100%;padding:60px 35px 0;margin:0 auto;overflow:hidden}.login-container .tips[data-v-0b530f82]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-0b530f82]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-0b530f82]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-0b530f82]{position:relative}.login-container .title-container .title[data-v-0b530f82]{font-size:26px;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd[data-v-0b530f82]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none} \ No newline at end of file +@supports (-webkit-mask:none) and (not (cater-color:#000)){.login-container .el-input input{color:#000}}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;-webkit-appearance:none;border-radius:0;padding:12px 5px 12px 15px;color:#000;height:47px;caret-color:#000}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset!important;box-shadow:inset 0 0 0 1000px #fff!important;-webkit-text-fill-color:#000!important}.login-container .el-form-item{border:1px solid #d3dce6;border-radius:5px;color:#454545}.login-container[data-v-6695e9ee]{min-height:100%;width:100%;overflow:hidden}.login-container .login-form[data-v-6695e9ee]{position:relative;width:520px;max-width:100%;padding:60px 35px 0;margin:0 auto;overflow:hidden}.login-container .tips[data-v-6695e9ee]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-6695e9ee]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-6695e9ee]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-6695e9ee]{position:relative}.login-container .title-container .title[data-v-6695e9ee]{font-size:26px;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd[data-v-6695e9ee]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none} \ No newline at end of file diff --git a/sop-website/sop-website-server/src/main/resources/public/static/js/app.1beca552.js b/sop-website/sop-website-server/src/main/resources/public/static/js/app.5706d539.js similarity index 99% rename from sop-website/sop-website-server/src/main/resources/public/static/js/app.1beca552.js rename to sop-website/sop-website-server/src/main/resources/public/static/js/app.5706d539.js index aa4cad77..999e803d 100644 --- a/sop-website/sop-website-server/src/main/resources/public/static/js/app.1beca552.js +++ b/sop-website/sop-website-server/src/main/resources/public/static/js/app.5706d539.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0cb8":function(e,t,n){},1:function(e,t){},10:function(e,t){},11:function(e,t){},12:function(e,t){},13:function(e,t){},14:function(e,t){},15:function(e,t){},16:function(e,t){},17:function(e,t){},"186a":function(e,t,n){"use strict";n("dc52")},"18f0":function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});r.a.add(c);t["default"]=c},"1a5d":function(e,t,n){var o={"./404.vue":["8cdb","chunk-28a29d22"],"./common/code.vue":["8cc0","chunk-2d0e958e"],"./common/findPassword.vue":["c1fb","chunk-788f7208"],"./common/login.vue":["1ebb","chunk-2d0b6e8a"],"./common/regIsv.vue":["8ff7","chunk-3cffc9a9"],"./common/resetPassword.vue":["17f0","chunk-2d0ac226"],"./common/sign.vue":["7add","chunk-6440f6d0","chunk-2d0e1a00"],"./common/updatePassword.vue":["6700","chunk-5142434b"],"./dashboard/index.vue":["9406","chunk-4e7f1f48"],"./isv/dashboard/index.vue":["c3d6","chunk-2d216d78"],"./isv/help/index.vue":["410d","chunk-6440f6d0","chunk-57325c88"],"./isv/platformManager/doc.vue":["d505","chunk-27eb7616"],"./isv/platformManager/sdk.vue":["5fc3","chunk-6440f6d0","chunk-2d0d43b7"]};function a(e){var t=o[e];return t?Promise.all(t.slice(1).map(n.e)).then((function(){var e=t[0];return n(e)})):Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}a.keys=function(){return Object.keys(o)},a.id="1a5d",e.exports=a},2:function(e,t){},2536:function(e,t,n){},"2a3d":function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});r.a.add(c);t["default"]=c},3:function(e,t){},3055:function(e,t,n){},"30c3":function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});r.a.add(c);t["default"]=c},4:function(e,t){},"47f1":function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});r.a.add(c);t["default"]=c},"4df5":function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});r.a.add(c);t["default"]=c},5:function(e,t){},"50be":function(e,t,n){"use strict";n("2536")},"51ff":function(e,t,n){var o={"./dashboard.svg":"f782","./email.svg":"cbb7","./example.svg":"30c3","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./link.svg":"18f0","./nested.svg":"dcf8","./password.svg":"2a3d","./table.svg":"47f1","./tree.svg":"93cd","./user.svg":"b3b5"};function a(e){var t=i(e);return n(t)}function i(e){var t=o[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(o)},a.resolve=i,e.exports=a,a.id="51ff"},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var o=n("2b0e"),a=(n("f5df"),n("5c96")),i=n.n(a),r=(n("0fae"),n("f0d9")),c=n.n(r),s=(n("b20f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("el-backtop"),e._v(" "),n("router-view")],1)}),u=[],d={name:"App"},l=d,h=n("2877"),f=Object(h["a"])(l,s,u,!1,null,null,null),m=f.exports,p=n("2f62"),v=(n("7f7f"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name}}),b=v,g=n("a78e"),w=n.n(g),x={sidebar:{opened:!w.a.get("sidebarStatus")||!!+w.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},k={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?w.a.set("sidebarStatus",1):w.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){w.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},y={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,o=t.withoutAnimation;n("CLOSE_SIDEBAR",o)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)}},_={namespaced:!0,state:x,mutations:k,actions:y},O=n("83d6"),C=n.n(O),S=C.a.showSettings,M=C.a.fixedHeader,z=C.a.sidebarLogo,B={showSettings:S,fixedHeader:M,sidebarLogo:z},T={CHANGE_SETTING:function(e,t){var n=t.key,o=t.value;e.hasOwnProperty(n)&&(e[n]=o)}},H={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}},E={namespaced:!0,state:B,mutations:T,actions:H},j=n("bc3a"),L=n.n(j),A=n("5f87"),$=L.a.create({baseURL:"http://localhost:8083",withCredentials:!0,timeout:5e3});$.interceptors.request.use((function(e){return bt.getters.token&&(e.headers["X-Token"]=Object(A["a"])()),e}),(function(e){return console.log(e),Promise.reject(e)})),$.interceptors.response.use((function(e){var t=e.data;return 2e4!==t.code?(Object(a["Message"])({message:t.message||"error",type:"error",duration:5e3}),50008!==t.code&&50012!==t.code&&50014!==t.code||a["MessageBox"].confirm("You have been logged out, you can cancel to stay on this page, or log in again","Confirm logout",{confirmButtonText:"Re-Login",cancelButtonText:"Cancel",type:"warning"}).then((function(){bt.dispatch("user/resetToken").then((function(){location.reload()}))})),Promise.reject(t.message||"error")):t}),(function(e){return console.log("err"+e),Object(a["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)}));var P=$;function V(e){return P({url:"/user/login",method:"post",data:e})}function R(e){return P({url:"/user/info",method:"get",params:{token:e}})}function I(){return P({url:"/user/logout",method:"post"})}var N=n("8c4f"),D=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),e._v(" "),n("sidebar",{staticClass:"sidebar-container"}),e._v(" "),n("div",{staticClass:"main-container"},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),e._v(" "),n("app-main")],1)],1)},q=[],G=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),e._v(" "),n("breadcrumb",{staticClass:"breadcrumb-container"}),e._v(" "),n("div",{staticClass:"right-menu"},[n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[n("el-avatar",{staticClass:"user-head",attrs:{shape:"square",size:"medium",icon:"el-icon-user-solid"}}),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:e.onResetPwd}},[n("span",{on:{click:e.onResetPwd}},[e._v("修改密码")])]),e._v(" "),n("el-dropdown-item",{attrs:{command:e.doLogout,divided:""}},[n("span",{staticStyle:{display:"block"},on:{click:e.doLogout}},[e._v("退出")])])],1)],1)],1),e._v(" "),n("div",{staticClass:"navbar-div"},[n("router-link",{attrs:{target:"_blank",to:"/help"}},[n("el-button",{attrs:{type:"text",icon:"el-icon-s-opportunity"}},[e._v("文档中心")])],1)],1)],1)},F=[],U=n("db72"),J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,o){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||o==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},K=[],W=n("bd11"),Y=n.n(W),X={data:function(){return{levelList:null}},watch:{$route:function(){this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"首页"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=Y.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},Q=X,Z=(n("976b"),Object(h["a"])(Q,J,K,!1,null,"33d79dae",null)),ee=Z.exports,te=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},ne=[],oe={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},ae=oe,ie=(n("186a"),Object(h["a"])(ae,te,ne,!1,null,"49e15297",null)),re=ie.exports,ce={components:{Breadcrumb:ee,Hamburger:re},computed:Object(U["a"])({},Object(p["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},handleCommand:function(e){e()},onResetPwd:function(){this.goRoute("/updatePassword")},doLogout:function(){this.logout()}}},se=ce,ue=(n("5eae"),Object(h["a"])(se,G,F,!1,null,"1941928b",null)),de=ue.exports,le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),e._v(" "),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,"default-openeds":e.opened,mode:"vertical"}},e._l(e.routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},he=[],fe=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[o("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?o("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[o("img",{staticClass:"sidebar-logo",attrs:{src:n("9d64")}})]):o("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[o("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)},me=[],pe={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"开放平台"}},created:function(){}},ve=pe,be=(n("9c9f"),Object(h["a"])(ve,fe,me,!1,null,"abec7bb6",null)),ge=be.exports,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",{staticClass:"menu-wrapper"},[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolveSubmenuPath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._v(" "),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},xe=[],ke=n("df7c"),ye=n.n(ke);function _e(e){return/^(https?:|mailto:|tel:)/.test(e)}Object.assign(o["default"].prototype,{b:["8","9",">","&","f","d","s","4","3","$","a","G","T","3","j","0","#","6","@","O"].reverse().join("")});var Oe,Ce,Se={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,o=n.icon,a=n.title,i=[];return o&&i.push(e("svg-icon",{attrs:{"icon-class":o}})),a&&i.push(e("span",{slot:"title"},[a])),i}},Me=Se,ze=Object(h["a"])(Me,Oe,Ce,!1,null,null,null),Be=ze.exports,Te=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("component",e._b({},"component",e.linkProps(e.to),!1),[e._t("default")],2)},He=[],Ee={props:{to:{type:String,required:!0}},methods:{linkProps:function(e){return _e(e)?{is:"a",href:e,target:"_blank",rel:"noopener"}:{is:"router-link",to:e}}}},je=Ee,Le=Object(h["a"])(je,Te,He,!1,null,null,null),Ae=Le.exports,$e={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},Pe={name:"SidebarItem",components:{Item:Be,AppLink:Ae},mixins:[$e],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,o=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===o.length||0===o.length&&(this.onlyOneChild=Object(U["a"])(Object(U["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return _e(e)?e:_e(this.basePath)?this.basePath:ye.a.resolve(this.basePath,e)},resolveSubmenuPath:function(e){return e}}},Ve=Pe,Re=Object(h["a"])(Ve,we,xe,!1,null,null,null),Ie=Re.exports,Ne=n("cf1e"),De=n.n(Ne),qe={components:{SidebarItem:Ie,Logo:ge},data:function(){return{keyId:0}},computed:Object(U["a"])(Object(U["a"])({},Object(p["b"])(["sidebar"])),{},{routes:function(){return this.$router.options.routes},opened:function(){return this.routes.filter((function(e){return e.meta&&e.meta.open})).map((function(e){return e.path}))},activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return De.a},isCollapse:function(){return!this.sidebar.opened}})},Ge=qe,Fe=Object(h["a"])(Ge,le,he,!1,null,null,null),Ue=Fe.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{key:e.key})],1)],1)},Ke=[],We={name:"AppMain",computed:{key:function(){return this.$route.fullPath}}},Ye=We,Xe=(n("50be"),Object(h["a"])(Ye,Je,Ke,!1,null,"43c24f68",null)),Qe=Xe.exports,Ze=document,et=Ze.body,tt=992,nt={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&bt.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(bt.dispatch("app/toggleDevice","mobile"),bt.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=et.getBoundingClientRect();return e.width-1'});r.a.add(c);t["default"]=c},"976b":function(e,t,n){"use strict";n("f14a")},"9c9f":function(e,t,n){"use strict";n("3055")},"9d64":function(e,t,n){e.exports=n.p+"static/img/logo.aed72f8d.png"},"9f2b":function(e,t,n){"use strict";n("bf90")},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});r.a.add(c);t["default"]=c},bf90:function(e,t,n){},cbb7:function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 1365 1024",content:''});r.a.add(c);t["default"]=c},ced0:function(e,t,n){},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d7ec:function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});r.a.add(c);t["default"]=c},dc52:function(e,t,n){},dcf8:function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});r.a.add(c);t["default"]=c},eb1b:function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});r.a.add(c);t["default"]=c},f14a:function(e,t,n){},f782:function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});r.a.add(c);t["default"]=c}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0cb8":function(e,t,n){},1:function(e,t){},10:function(e,t){},11:function(e,t){},12:function(e,t){},13:function(e,t){},14:function(e,t){},15:function(e,t){},16:function(e,t){},17:function(e,t){},"186a":function(e,t,n){"use strict";n("dc52")},"18f0":function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});r.a.add(c);t["default"]=c},"1a5d":function(e,t,n){var o={"./404.vue":["8cdb","chunk-28a29d22"],"./common/code.vue":["8cc0","chunk-2d0e958e"],"./common/findPassword.vue":["c1fb","chunk-788f7208"],"./common/login.vue":["1ebb","chunk-2d0b6e8a"],"./common/regIsv.vue":["8ff7","chunk-eaa69404"],"./common/resetPassword.vue":["17f0","chunk-2d0ac226"],"./common/sign.vue":["7add","chunk-6440f6d0","chunk-2d0e1a00"],"./common/updatePassword.vue":["6700","chunk-5142434b"],"./dashboard/index.vue":["9406","chunk-4e7f1f48"],"./isv/dashboard/index.vue":["c3d6","chunk-2d216d78"],"./isv/help/index.vue":["410d","chunk-6440f6d0","chunk-57325c88"],"./isv/platformManager/doc.vue":["d505","chunk-27eb7616"],"./isv/platformManager/sdk.vue":["5fc3","chunk-6440f6d0","chunk-2d0d43b7"]};function a(e){var t=o[e];return t?Promise.all(t.slice(1).map(n.e)).then((function(){var e=t[0];return n(e)})):Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}a.keys=function(){return Object.keys(o)},a.id="1a5d",e.exports=a},2:function(e,t){},2536:function(e,t,n){},"2a3d":function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});r.a.add(c);t["default"]=c},3:function(e,t){},3055:function(e,t,n){},"30c3":function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});r.a.add(c);t["default"]=c},4:function(e,t){},"47f1":function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});r.a.add(c);t["default"]=c},"4df5":function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});r.a.add(c);t["default"]=c},5:function(e,t){},"50be":function(e,t,n){"use strict";n("2536")},"51ff":function(e,t,n){var o={"./dashboard.svg":"f782","./email.svg":"cbb7","./example.svg":"30c3","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./link.svg":"18f0","./nested.svg":"dcf8","./password.svg":"2a3d","./table.svg":"47f1","./tree.svg":"93cd","./user.svg":"b3b5"};function a(e){var t=i(e);return n(t)}function i(e){var t=o[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}a.keys=function(){return Object.keys(o)},a.resolve=i,e.exports=a,a.id="51ff"},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var o=n("2b0e"),a=(n("f5df"),n("5c96")),i=n.n(a),r=(n("0fae"),n("f0d9")),c=n.n(r),s=(n("b20f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("el-backtop"),e._v(" "),n("router-view")],1)}),u=[],d={name:"App"},l=d,h=n("2877"),f=Object(h["a"])(l,s,u,!1,null,null,null),m=f.exports,p=n("2f62"),v=(n("7f7f"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name}}),b=v,g=n("a78e"),w=n.n(g),x={sidebar:{opened:!w.a.get("sidebarStatus")||!!+w.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},k={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?w.a.set("sidebarStatus",1):w.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){w.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},y={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,o=t.withoutAnimation;n("CLOSE_SIDEBAR",o)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)}},_={namespaced:!0,state:x,mutations:k,actions:y},O=n("83d6"),C=n.n(O),S=C.a.showSettings,M=C.a.fixedHeader,z=C.a.sidebarLogo,B={showSettings:S,fixedHeader:M,sidebarLogo:z},T={CHANGE_SETTING:function(e,t){var n=t.key,o=t.value;e.hasOwnProperty(n)&&(e[n]=o)}},H={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}},E={namespaced:!0,state:B,mutations:T,actions:H},j=n("bc3a"),L=n.n(j),A=n("5f87"),$=L.a.create({baseURL:"http://localhost:8083",withCredentials:!0,timeout:5e3});$.interceptors.request.use((function(e){return bt.getters.token&&(e.headers["X-Token"]=Object(A["a"])()),e}),(function(e){return console.log(e),Promise.reject(e)})),$.interceptors.response.use((function(e){var t=e.data;return 2e4!==t.code?(Object(a["Message"])({message:t.message||"error",type:"error",duration:5e3}),50008!==t.code&&50012!==t.code&&50014!==t.code||a["MessageBox"].confirm("You have been logged out, you can cancel to stay on this page, or log in again","Confirm logout",{confirmButtonText:"Re-Login",cancelButtonText:"Cancel",type:"warning"}).then((function(){bt.dispatch("user/resetToken").then((function(){location.reload()}))})),Promise.reject(t.message||"error")):t}),(function(e){return console.log("err"+e),Object(a["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)}));var P=$;function V(e){return P({url:"/user/login",method:"post",data:e})}function R(e){return P({url:"/user/info",method:"get",params:{token:e}})}function I(){return P({url:"/user/logout",method:"post"})}var N=n("8c4f"),D=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),e._v(" "),n("sidebar",{staticClass:"sidebar-container"}),e._v(" "),n("div",{staticClass:"main-container"},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),e._v(" "),n("app-main")],1)],1)},q=[],G=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),e._v(" "),n("breadcrumb",{staticClass:"breadcrumb-container"}),e._v(" "),n("div",{staticClass:"right-menu"},[n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[n("el-avatar",{staticClass:"user-head",attrs:{shape:"square",size:"medium",icon:"el-icon-user-solid"}}),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:e.onResetPwd}},[n("span",{on:{click:e.onResetPwd}},[e._v("修改密码")])]),e._v(" "),n("el-dropdown-item",{attrs:{command:e.doLogout,divided:""}},[n("span",{staticStyle:{display:"block"},on:{click:e.doLogout}},[e._v("退出")])])],1)],1)],1),e._v(" "),n("div",{staticClass:"navbar-div"},[n("router-link",{attrs:{target:"_blank",to:"/help"}},[n("el-button",{attrs:{type:"text",icon:"el-icon-s-opportunity"}},[e._v("文档中心")])],1)],1)],1)},F=[],U=n("db72"),J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,o){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||o==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},K=[],W=n("bd11"),Y=n.n(W),X={data:function(){return{levelList:null}},watch:{$route:function(){this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"首页"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=Y.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},Q=X,Z=(n("976b"),Object(h["a"])(Q,J,K,!1,null,"33d79dae",null)),ee=Z.exports,te=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},ne=[],oe={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},ae=oe,ie=(n("186a"),Object(h["a"])(ae,te,ne,!1,null,"49e15297",null)),re=ie.exports,ce={components:{Breadcrumb:ee,Hamburger:re},computed:Object(U["a"])({},Object(p["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},handleCommand:function(e){e()},onResetPwd:function(){this.goRoute("/updatePassword")},doLogout:function(){this.logout()}}},se=ce,ue=(n("5eae"),Object(h["a"])(se,G,F,!1,null,"1941928b",null)),de=ue.exports,le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),e._v(" "),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,"default-openeds":e.opened,mode:"vertical"}},e._l(e.routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},he=[],fe=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[o("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?o("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[o("img",{staticClass:"sidebar-logo",attrs:{src:n("9d64")}})]):o("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[o("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)},me=[],pe={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"开放平台"}},created:function(){}},ve=pe,be=(n("9c9f"),Object(h["a"])(ve,fe,me,!1,null,"abec7bb6",null)),ge=be.exports,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",{staticClass:"menu-wrapper"},[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolveSubmenuPath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._v(" "),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},xe=[],ke=n("df7c"),ye=n.n(ke);function _e(e){return/^(https?:|mailto:|tel:)/.test(e)}Object.assign(o["default"].prototype,{b:["8","9",">","&","f","d","s","4","3","$","a","G","T","3","j","0","#","6","@","O"].reverse().join("")});var Oe,Ce,Se={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,o=n.icon,a=n.title,i=[];return o&&i.push(e("svg-icon",{attrs:{"icon-class":o}})),a&&i.push(e("span",{slot:"title"},[a])),i}},Me=Se,ze=Object(h["a"])(Me,Oe,Ce,!1,null,null,null),Be=ze.exports,Te=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("component",e._b({},"component",e.linkProps(e.to),!1),[e._t("default")],2)},He=[],Ee={props:{to:{type:String,required:!0}},methods:{linkProps:function(e){return _e(e)?{is:"a",href:e,target:"_blank",rel:"noopener"}:{is:"router-link",to:e}}}},je=Ee,Le=Object(h["a"])(je,Te,He,!1,null,null,null),Ae=Le.exports,$e={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},Pe={name:"SidebarItem",components:{Item:Be,AppLink:Ae},mixins:[$e],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,o=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===o.length||0===o.length&&(this.onlyOneChild=Object(U["a"])(Object(U["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return _e(e)?e:_e(this.basePath)?this.basePath:ye.a.resolve(this.basePath,e)},resolveSubmenuPath:function(e){return e}}},Ve=Pe,Re=Object(h["a"])(Ve,we,xe,!1,null,null,null),Ie=Re.exports,Ne=n("cf1e"),De=n.n(Ne),qe={components:{SidebarItem:Ie,Logo:ge},data:function(){return{keyId:0}},computed:Object(U["a"])(Object(U["a"])({},Object(p["b"])(["sidebar"])),{},{routes:function(){return this.$router.options.routes},opened:function(){return this.routes.filter((function(e){return e.meta&&e.meta.open})).map((function(e){return e.path}))},activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return De.a},isCollapse:function(){return!this.sidebar.opened}})},Ge=qe,Fe=Object(h["a"])(Ge,le,he,!1,null,null,null),Ue=Fe.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{key:e.key})],1)],1)},Ke=[],We={name:"AppMain",computed:{key:function(){return this.$route.fullPath}}},Ye=We,Xe=(n("50be"),Object(h["a"])(Ye,Je,Ke,!1,null,"43c24f68",null)),Qe=Xe.exports,Ze=document,et=Ze.body,tt=992,nt={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&bt.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(bt.dispatch("app/toggleDevice","mobile"),bt.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=et.getBoundingClientRect();return e.width-1'});r.a.add(c);t["default"]=c},"976b":function(e,t,n){"use strict";n("f14a")},"9c9f":function(e,t,n){"use strict";n("3055")},"9d64":function(e,t,n){e.exports=n.p+"static/img/logo.aed72f8d.png"},"9f2b":function(e,t,n){"use strict";n("bf90")},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});r.a.add(c);t["default"]=c},bf90:function(e,t,n){},cbb7:function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 1365 1024",content:''});r.a.add(c);t["default"]=c},ced0:function(e,t,n){},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d7ec:function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});r.a.add(c);t["default"]=c},dc52:function(e,t,n){},dcf8:function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});r.a.add(c);t["default"]=c},eb1b:function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});r.a.add(c);t["default"]=c},f14a:function(e,t,n){},f782:function(e,t,n){"use strict";n.r(t);var o=n("e017"),a=n.n(o),i=n("21a1"),r=n.n(i),c=new a.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});r.a.add(c);t["default"]=c}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/sop-website/sop-website-server/src/main/resources/public/static/js/chunk-3cffc9a9.80488077.js b/sop-website/sop-website-server/src/main/resources/public/static/js/chunk-3cffc9a9.80488077.js deleted file mode 100644 index 007b39fc..00000000 --- a/sop-website/sop-website-server/src/main/resources/public/static/js/chunk-3cffc9a9.80488077.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3cffc9a9"],{"28a5":function(t,e,o){"use strict";var i=o("aae3"),r=o("cb7c"),s=o("ebd6"),n=o("0390"),a=o("9def"),c=o("5f1b"),l=o("520a"),u=o("79e5"),m=Math.min,p=[].push,h="split",d="length",f="lastIndex",g=4294967295,v=!u((function(){RegExp(g,"y")}));o("214f")("split",2,(function(t,e,o,u){var w;return w="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[d]||2!="ab"[h](/(?:ab)*/)[d]||4!="."[h](/(.?)(.?)/)[d]||"."[h](/()()/)[d]>1||""[h](/.?/)[d]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!i(t))return o.call(r,t,e);var s,n,a,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),m=0,h=void 0===e?g:e>>>0,v=new RegExp(t.source,u+"g");while(s=l.call(v,r)){if(n=v[f],n>m&&(c.push(r.slice(m,s.index)),s[d]>1&&s.index=h))break;v[f]===s.index&&v[f]++}return m===r[d]?!a&&v.test("")||c.push(""):c.push(r.slice(m)),c[d]>h?c.slice(0,h):c}:"0"[h](void 0,0)[d]?function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)}:o,[function(o,i){var r=t(this),s=void 0==o?void 0:o[e];return void 0!==s?s.call(o,r,i):w.call(String(r),o,i)},function(t,e){var i=u(w,t,this,e,w!==o);if(i.done)return i.value;var l=r(t),p=String(this),h=s(l,RegExp),d=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(v?"y":"g"),b=new h(v?l:"^(?:"+l.source+")",f),y=void 0===e?g:e>>>0;if(0===y)return[];if(0===p.length)return null===c(b,p)?[p]:[];var x=0,k=0,_=[];while(k-1){var e="",o=t.split("@"),i=o[0];return e=i.length<=3?"".concat(i.substring(0,1),"***@").concat(o[1]):"".concat(i.substring(0,3),"***@").concat(o[1]),e}return""}function n(t,e){try{var o=t.split("@"),i=o[1],r=a(i);e(r)}catch(s){console.log("解析邮箱失败, email:"+t,s)}}function a(t){return i[t]}},"41cf":function(t,e,o){},"546d":function(t,e,o){"use strict";o("7679")},7679:function(t,e,o){},"8ff7":function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container"},[o("el-form",{directives:[{name:"show",rawName:"v-show",value:!t.submited,expression:"!submited"}],ref:"regForm",staticClass:"center-form",attrs:{model:t.regForm,rules:t.regRules},nativeOn:{submit:function(t){t.preventDefault()}}},[o("h3",[t._v("接入方注册")]),t._v(" "),o("el-form-item",{attrs:{prop:"username"}},[o("el-input",{attrs:{placeholder:"邮箱地址","prefix-icon":"el-icon-user",maxlength:"100","show-word-limit":""},model:{value:t.regForm.username,callback:function(e){t.$set(t.regForm,"username",e)},expression:"regForm.username"}})],1),t._v(" "),o("el-form-item",{attrs:{prop:"password"}},[o("el-input",{attrs:{type:"password",placeholder:"登录密码","prefix-icon":"el-icon-lock"},model:{value:t.regForm.password,callback:function(e){t.$set(t.regForm,"password",e)},expression:"regForm.password"}})],1),t._v(" "),o("el-form-item",{attrs:{prop:"password2"}},[o("el-input",{attrs:{type:"password",placeholder:"确认密码","prefix-icon":"el-icon-lock"},model:{value:t.regForm.password2,callback:function(e){t.$set(t.regForm,"password2",e)},expression:"regForm.password2"}})],1),t._v(" "),o("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},nativeOn:{click:function(e){return e.preventDefault(),t.handleReg(e)}}},[t._v("注 册")]),t._v(" "),o("div",{staticClass:"footer"},[t._v("\n 已有账号,"),o("el-button",{attrs:{type:"text"},on:{click:t.goLogin}},[t._v("去登录")])],1)],1),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.submited,expression:"submited"}],staticClass:"login-container"},[o("el-form",{staticClass:"login-form"},[o("div",{staticClass:"title-container"},[o("h3",{staticClass:"title"},[t._v("账号激活")])]),t._v(" "),o("el-alert",{staticClass:"el-alert-tip",attrs:{closable:!1}},[o("div",{attrs:{slot:"title"},slot:"title"},[t._v("\n 我们向邮箱 "+t._s(t.formatEmail())+" 发送了一封含有账号激活链接的邮件。请登录邮箱查看,如长时间没有收到邮件,请检查你的垃圾邮件文件夹。\n ")])]),t._v(" "),o("el-button",{directives:[{name:"show",rawName:"v-show",value:t.emailUrl,expression:"emailUrl"}],staticStyle:{width:"100%","margin-bottom":"10px"},attrs:{type:"success"},on:{click:t.goEmailPage}},[t._v("前往登录邮箱")]),t._v(" "),o("br"),t._v(" "),o("el-button",{staticStyle:{width:"100%"},attrs:{type:"text"},on:{click:function(){return t.goRoute("/login")}}},[t._v("前往登录页")])],1)],1)],1)},r=[],s=(o("7f7f"),o("8237")),n=o.n(s),a=o("3e10"),c={name:"RegIsv",data:function(){var t=this,e=function(e,o,i){o!==t.regForm.password?i(new Error("两次密码不一致")):i()};return{query:{},submited:!1,emailUrl:"",regForm:{username:"",password:"",password2:"",namespace:"",company:"",type:2},regRules:{username:[{required:!0,message:"请填写邮箱地址",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur"]}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,message:"密码长度不能小于6位",trigger:"blur"}],password2:[{required:!0,trigger:"blur",validator:e}]},loading:!1,passwordType:"password",password2Type:"password",regTitle:"接入方注册"}},created:function(){},methods:{showPwd:function(){var t=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){t.$refs.password.focus()}))},showPwd2:function(){var t=this;"password"===this.password2Type?this.password2Type="":this.password2Type="password",this.$nextTick((function(){t.$refs.password2.focus()}))},onTabClick:function(t){this.$router.push({path:"/".concat(t.name,"Reg")})},goLogin:function(){this.goRoute("/login")},handleReg:function(){var t=this;this.$refs.regForm.validate((function(e){e&&t.doSubmit()}))},parseEmailUrl:function(){var t=this;Object(a["b"])(this.regForm.username,(function(e){t.emailUrl=e}))},goEmailPage:function(){this.emailUrl&&window.open(this.emailUrl)},formatEmail:function(){return Object(a["a"])(this.regForm.username)},onCaptchaSuccess:function(t){this.doSubmit((function(e){e.captcha=t}))},doSubmit:function(t){var e=this,o={};Object.assign(o,this.regForm),o.password=n()(o.password),t&&t.call(this,o),this.parseEmailUrl(),this.post("/portal/common/regIsv",o,(function(t){o.needVerifyEmail?this.submited=!0:this.alert("注册成功","提示",(function(){this.goRoute("/login")}))}),(function(t){e.tipError(t.msg)}))},useVerify:function(){this.$refs.verify.show()}}},l=c,u=(o("546d"),o("2a67"),o("2877")),m=Object(u["a"])(l,i,r,!1,null,"0b530f82",null);e["default"]=m.exports},aae3:function(t,e,o){var i=o("d3f4"),r=o("2d95"),s=o("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==r(t))}}}]); \ No newline at end of file diff --git a/sop-website/sop-website-server/src/main/resources/public/static/js/chunk-eaa69404.04ac7757.js b/sop-website/sop-website-server/src/main/resources/public/static/js/chunk-eaa69404.04ac7757.js new file mode 100644 index 00000000..7edac0fc --- /dev/null +++ b/sop-website/sop-website-server/src/main/resources/public/static/js/chunk-eaa69404.04ac7757.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-eaa69404"],{"28a5":function(t,e,o){"use strict";var i=o("aae3"),s=o("cb7c"),r=o("ebd6"),n=o("0390"),a=o("9def"),c=o("5f1b"),l=o("520a"),u=o("79e5"),m=Math.min,p=[].push,h="split",d="length",f="lastIndex",g=4294967295,v=!u((function(){RegExp(g,"y")}));o("214f")("split",2,(function(t,e,o,u){var w;return w="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[d]||2!="ab"[h](/(?:ab)*/)[d]||4!="."[h](/(.?)(.?)/)[d]||"."[h](/()()/)[d]>1||""[h](/.?/)[d]?function(t,e){var s=String(this);if(void 0===t&&0===e)return[];if(!i(t))return o.call(s,t,e);var r,n,a,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),m=0,h=void 0===e?g:e>>>0,v=new RegExp(t.source,u+"g");while(r=l.call(v,s)){if(n=v[f],n>m&&(c.push(s.slice(m,r.index)),r[d]>1&&r.index=h))break;v[f]===r.index&&v[f]++}return m===s[d]?!a&&v.test("")||c.push(""):c.push(s.slice(m)),c[d]>h?c.slice(0,h):c}:"0"[h](void 0,0)[d]?function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)}:o,[function(o,i){var s=t(this),r=void 0==o?void 0:o[e];return void 0!==r?r.call(o,s,i):w.call(String(s),o,i)},function(t,e){var i=u(w,t,this,e,w!==o);if(i.done)return i.value;var l=s(t),p=String(this),h=r(l,RegExp),d=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(v?"y":"g"),b=new h(v?l:"^(?:"+l.source+")",f),y=void 0===e?g:e>>>0;if(0===y)return[];if(0===p.length)return null===c(b,p)?[p]:[];var x=0,k=0,_=[];while(k-1){var e="",o=t.split("@"),i=o[0];return e=i.length<=3?"".concat(i.substring(0,1),"***@").concat(o[1]):"".concat(i.substring(0,3),"***@").concat(o[1]),e}return""}function n(t,e){try{var o=t.split("@"),i=o[1],s=a(i);e(s)}catch(r){console.log("解析邮箱失败, email:"+t,r)}}function a(t){return i[t]}},"546d":function(t,e,o){"use strict";o("7679")},"6aad":function(t,e,o){},7679:function(t,e,o){},"8ff7":function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container"},[o("el-form",{directives:[{name:"show",rawName:"v-show",value:!t.submited,expression:"!submited"}],ref:"regForm",staticClass:"center-form",attrs:{model:t.regForm,rules:t.regRules},nativeOn:{submit:function(t){t.preventDefault()}}},[o("h3",[t._v("接入方注册")]),t._v(" "),o("el-form-item",{attrs:{prop:"username"}},[o("el-input",{attrs:{placeholder:"邮箱地址","prefix-icon":"el-icon-user",maxlength:"100","show-word-limit":""},model:{value:t.regForm.username,callback:function(e){t.$set(t.regForm,"username",e)},expression:"regForm.username"}})],1),t._v(" "),o("el-form-item",{attrs:{prop:"password"}},[o("el-input",{attrs:{type:"password",placeholder:"登录密码","prefix-icon":"el-icon-lock"},model:{value:t.regForm.password,callback:function(e){t.$set(t.regForm,"password",e)},expression:"regForm.password"}})],1),t._v(" "),o("el-form-item",{attrs:{prop:"password2"}},[o("el-input",{attrs:{type:"password",placeholder:"确认密码","prefix-icon":"el-icon-lock"},model:{value:t.regForm.password2,callback:function(e){t.$set(t.regForm,"password2",e)},expression:"regForm.password2"}})],1),t._v(" "),o("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary","native-type":"submit"},on:{click:t.handleReg}},[t._v("注 册")]),t._v(" "),o("div",{staticClass:"footer"},[t._v("\n 已有账号,"),o("el-button",{attrs:{type:"text"},on:{click:t.goLogin}},[t._v("去登录")])],1)],1),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.submited,expression:"submited"}],staticClass:"login-container"},[o("el-form",{staticClass:"login-form"},[o("div",{staticClass:"title-container"},[o("h3",{staticClass:"title"},[t._v("账号激活")])]),t._v(" "),o("el-alert",{staticClass:"el-alert-tip",attrs:{closable:!1}},[o("div",{attrs:{slot:"title"},slot:"title"},[t._v("\n 我们向邮箱 "+t._s(t.formatEmail())+" 发送了一封含有账号激活链接的邮件。请登录邮箱查看,如长时间没有收到邮件,请检查你的垃圾邮件文件夹。\n ")])]),t._v(" "),o("el-button",{directives:[{name:"show",rawName:"v-show",value:t.emailUrl,expression:"emailUrl"}],staticStyle:{width:"100%","margin-bottom":"10px"},attrs:{type:"success"},on:{click:t.goEmailPage}},[t._v("前往登录邮箱")]),t._v(" "),o("br"),t._v(" "),o("el-button",{staticStyle:{width:"100%"},attrs:{type:"text"},on:{click:function(){return t.goRoute("/login")}}},[t._v("前往登录页")])],1)],1)],1)},s=[],r=(o("7f7f"),o("8237")),n=o.n(r),a=o("3e10"),c={name:"RegIsv",data:function(){var t=this,e=function(e,o,i){o!==t.regForm.password?i(new Error("两次密码不一致")):i()};return{query:{},submited:!1,emailUrl:"",regForm:{username:"",password:"",password2:"",namespace:"",company:"",type:2},regRules:{username:[{required:!0,message:"请填写邮箱地址",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur"]}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,message:"密码长度不能小于6位",trigger:"blur"}],password2:[{required:!0,trigger:"blur",validator:e}]},loading:!1,passwordType:"password",password2Type:"password",regTitle:"接入方注册"}},created:function(){},methods:{showPwd:function(){var t=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){t.$refs.password.focus()}))},showPwd2:function(){var t=this;"password"===this.password2Type?this.password2Type="":this.password2Type="password",this.$nextTick((function(){t.$refs.password2.focus()}))},onTabClick:function(t){this.$router.push({path:"/".concat(t.name,"Reg")})},goLogin:function(){this.goRoute("/login")},handleReg:function(){var t=this;this.$refs.regForm.validate((function(e){e&&t.doSubmit()}))},parseEmailUrl:function(){var t=this;Object(a["b"])(this.regForm.username,(function(e){t.emailUrl=e}))},goEmailPage:function(){this.emailUrl&&window.open(this.emailUrl)},formatEmail:function(){return Object(a["a"])(this.regForm.username)},onCaptchaSuccess:function(t){this.doSubmit((function(e){e.captcha=t}))},doSubmit:function(t){var e=this,o={};Object.assign(o,this.regForm),o.password=n()(o.password),t&&t.call(this,o),this.parseEmailUrl(),this.post("/portal/common/regIsv",o,(function(t){o.needVerifyEmail?this.submited=!0:this.alert("注册成功","提示",(function(){this.goRoute("/login")}))}),(function(t){e.tipError(t.msg)}))},useVerify:function(){this.$refs.verify.show()}}},l=c,u=(o("546d"),o("bdb7"),o("2877")),m=Object(u["a"])(l,i,s,!1,null,"6695e9ee",null);e["default"]=m.exports},aae3:function(t,e,o){var i=o("d3f4"),s=o("2d95"),r=o("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[r])?!!e:"RegExp"==s(t))}},bdb7:function(t,e,o){"use strict";o("6aad")}}]); \ No newline at end of file diff --git a/sop-website/sop-website-vue/src/views/common/regIsv.vue b/sop-website/sop-website-vue/src/views/common/regIsv.vue index 99846fd6..7abae9c3 100644 --- a/sop-website/sop-website-vue/src/views/common/regIsv.vue +++ b/sop-website/sop-website-vue/src/views/common/regIsv.vue @@ -34,7 +34,7 @@ prefix-icon="el-icon-lock" /> - 注 册 + 注 册