You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
7.2 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5b196991"],{2017:function(o,t,e){"use strict";e("8a07")},"28fd":function(o,t,e){o.exports=e.p+"static/img/login-logo.79965e0d.png"},"2b9a":function(o,t,e){var n=e("24fb");t=n(!1),t.push([o.i,"@supports(-webkit-mask:none) and (not (cater-color:#000000)){.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 rgba(7,7,7,.1);background:hsla(0,0%,100%,.8);border-radius:5px;color:#454545}",""]),o.exports=t},"42b3":function(o,t,e){var n=e("24fb"),a=e("1de5"),i=e("90d9");t=n(!1);var r=a(i);t.push([o.i,".login-container[data-v-79965408]{height:100%;width:100%;background-image:url("+r+');overflow:hidden;background-size:100% 100%}.login-container .login-form[data-v-79965408]{position:relative;width:369px;max-width:100%;margin:10% auto;overflow:hidden;background:#fff;border-radius:10px;padding:0 20px}.login-container .tips[data-v-79965408]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-79965408]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-79965408]{padding:6px 5px 6px 15px;color:#5e6163;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-79965408]{position:relative}.login-container .title-container .title[data-v-79965408]{font-size:26px;color:#000;margin:10px auto;text-align:center;font-weight:700}.login-container .logo-container[data-v-79965408]{position:relative;margin-bottom:10px}.login-container .show-pwd[data-v-79965408]{position:absolute;right:10px;top:7px;font-size:16px;color:#000;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.login-container .footer[data-v-79965408]{position:fixed;bottom:0;width:100%;overflow:visible;z-index:99;clear:both;background-color:rgba(0,0,0,.8);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr="#99000000",endColorstr="#99000000")}.login-container div.footerNodelf[data-v-79965408]{float:left}.login-container div.footerNode[data-v-79965408]{margin:0;float:right}.login-container .text-secondary[data-v-79965408]{color:#505050;color:hsla(0,0%,66.7%,.6);font-size:13px;line-height:25px}',""]),o.exports=t},"686a":function(o,t,e){var n=e("42b3");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[o.i,n,""]]),n.locals&&(o.exports=n.locals);var a=e("499e").default;a("19cdc1db",n,!0,{sourceMap:!1,shadowMode:!1})},"8a07":function(o,t,e){var n=e("2b9a");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[o.i,n,""]]),n.locals&&(o.exports=n.locals);var a=e("499e").default;a("3a3f53f3",n,!0,{sourceMap:!1,shadowMode:!1})},"90d9":function(o,t,e){o.exports=e.p+"static/img/convergedbg_v2.a7519353.jpg"},"9ed6":function(o,t,e){"use strict";e.r(t);var n=function(){var o=this,t=o.$createElement,e=o._self._c||t;return e("div",{staticClass:"login-container"},[o.isShow?e("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:o.loginForm,rules:o.loginRules,"auto-complete":"on","label-position":"left"}},[e("div",{staticClass:"title-container"},[e("h3",{staticClass:"title"},[o._v(o._s(o.softName))])]),e("div",{staticClass:"logo-container"},[e("img",{attrs:{src:o.companyLogo,width:"220",height:"40"}})]),e("el-form-item",{attrs:{prop:"username"}},[e("span",{staticClass:"svg-container"},[e("svg-icon",{attrs:{"icon-class":"user"}})],1),e("el-input",{ref:"username",attrs:{placeholder:"登录账号",name:"username",type:"text",tabindex:"1","auto-complete":"on"},model:{value:o.loginForm.username,callback:function(t){o.$set(o.loginForm,"username",t)},expression:"loginForm.username"}})],1),e("el-form-item",{attrs:{prop:"password"}},[e("span",{staticClass:"svg-container"},[e("svg-icon",{attrs:{"icon-class":"auth"}})],1),e("el-input",{key:o.passwordType,ref:"password",attrs:{type:o.passwordType,placeholder:"密码",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&o._k(t.keyCode,"enter",13,t.key,"Enter")?null:o.handleLogin(t)}},model:{value:o.loginForm.password,callback:function(t){o.$set(o.loginForm,"password",t)},expression:"loginForm.password"}}),e("span",{staticClass:"show-pwd",on:{click:o.showPwd}},[e("svg-icon",{attrs:{"icon-class":"password"===o.passwordType?"eye":"eye-open"}})],1)],1),e("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:o.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),o.handleLogin(t)}}},[o._v("登录")]),e("div",{staticClass:"tips"})],1):o._e(),e("div",{staticClass:"footer",attrs:{id:"footer",role:"contentinfo"}},[e("div",{staticClass:"footerNodelf text-secondary"},[e("span",[o._v("本软件使用权属于:"+o._s(o.companyName))])]),e("div",{staticClass:"footerNode text-secondary"},[e("span",{domProps:{innerHTML:o._s(o.copyRight)}},[o._v(o._s(o.copyRight))])])])],1)},a=[],i=(e("13d5"),e("b64b"),e("5f87")),r=e("ae0d"),s=e("5c96"),l=e("83d6"),c=e.n(l),d={name:"Login",data:function(){var o=function(o,t,e){t.length<1?e(new Error("请输入登录账号!")):e()},t=function(o,t,e){t.length<6?e(new Error("请输入账号密码,且不小于6位!")):e()};return{loginForm:{username:"",password:"",appId:c.a.appId,systemCode:c.a.activeSystemCode},loginRules:{username:[{required:!0,trigger:"blur",validator:o}],password:[{required:!0,trigger:"blur",validator:t}]},loading:!1,passwordType:"password",verifyCodeUrl:"",redirect:void 0,softName:"管理系统",companyLogo:e("28fd"),companyName:"",copyRight:"",pageLoading:"",isShow:!1,otherQuery:{}}},watch:{$route:{handler:function(o){var t=o.query;t&&(this.redirect=t.redirect,this.otherQuery=this.getOtherQuery(t))},immediate:!0}},created:function(){var o={lock:!0,text:"正在加载...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"};this.pageLoading=s["Loading"].service(o),this.loadToken()},mounted:function(){},methods:{loadToken:function(){var o=this;Object(r["f"])().then((function(t){console.log(t),Object(i["c"])(t.ResData.AccessToken),Object(r["d"])().then((function(t){o.softName=t.ResData.SoftName,o.companyLogo=t.ResData.SysLogo,o.companyName=t.ResData.CompanyName,o.copyRight=t.ResData.CopyRight})),o.pageLoading.close(),o.isShow=!0}))},showPwd:function(){var o=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){o.$refs.password.focus()}))},handleLogin:function(){var o=this;this.$refs.loginForm.validate((function(t){if(!t)return!1;o.loading=!0,o.$store.dispatch("user/userlogin",o.loginForm).then((function(t){o.$router.push({path:o.redirect||"/",query:o.otherQuery}),o.loading=!1})).catch((function(t){o.loading=!1}))}))},getOtherQuery:function(o){return Object.keys(o).reduce((function(t,e){return"redirect"!==e&&(t[e]=o[e]),t}),{})}}},p=d,u=(e("2017"),e("dfaf"),e("2877")),g=Object(u["a"])(p,n,a,!1,null,"79965408",null);t["default"]=g.exports},dfaf:function(o,t,e){"use strict";e("686a")}}]);