(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a5898e0"],{"34b6":function(t,e,a){"use strict";a("d29a")},5188:function(t,e,a){},"9ed6":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"login-container"},[s("img",{staticClass:"bg",attrs:{src:a("d68e"),alt:""}}),s("img",{staticClass:"logo",attrs:{src:t.logo,alt:""}}),t.noticeData.isShow?s("div",{staticClass:"affiche-box"},[s("h4",[t._v(t._s(t.noticeData.titile))]),s("p",[t._v(" "+t._s(t.noticeData.content)+" ")]),s("div",{staticClass:"qrcode"},[s("img",{attrs:{src:t.noticeData.picture,alt:""}})])]):t._e(),s("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{rules:t.rules,model:t.loginForm,"auto-complete":"on","label-position":"left"}},[s("div",{staticClass:"title-container"},[s("h3",{staticClass:"title"},[t._v(t._s(t.title))])]),s("el-form-item",{attrs:{prop:"username"}},[s("span",{staticClass:"svg-container"},[s("svg-icon",{attrs:{"icon-class":"user"}})],1),s("el-input",{ref:"username",attrs:{placeholder:"请输入账号",name:"username",type:"text",tabindex:"1","auto-complete":"on"},model:{value:t.loginForm.username,callback:function(e){t.$set(t.loginForm,"username",e)},expression:"loginForm.username"}})],1),s("el-form-item",{attrs:{prop:"password"}},[s("span",{staticClass:"svg-container"},[s("svg-icon",{attrs:{"icon-class":"password"}})],1),s("el-input",{key:t.passwordType,ref:"password",attrs:{type:t.passwordType,placeholder:"请输入密码",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleLogin(e)}},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}}),s("span",{staticClass:"show-pwd",on:{click:t.showPwd}},[s("svg-icon",{attrs:{"icon-class":"password"===t.passwordType?"eye":"eye-open"}})],1)],1),s("el-button",{staticStyle:{width:"100%","margin-top":"10px",background:"#3d22d7"},attrs:{loading:t.loading,type:"primary"},nativeOn:{click:function(e){return e.preventDefault(),t.handleLogin(e)}}},[t._v("登录")])],1)],1)},n=[],o=a("c7eb"),r=a("1da1"),i={name:"Login",data:function(){return{loginForm:{username:"",password:""},rules:{password:[{required:!0,message:"请输入密码",trigger:"blur"},{pattern:/^(((?=.*\d)(?=.*[a-z])(?=.*[A-Z]))|((?=.*\d)(?=.*[a-z])(?=.*[~!@#$%^&*]))|((?=.*\d)(?=.*[A-Z])(?=.*[~!@#$%^&*]))|((?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&*]))|((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&*]))).{10,32}$/,message:"必须大小写字母、数字、特殊字符,4种组合中至少满足3种，且密码长度在10-32位之间。若无法登录，请联系管理员！"}]},loading:!1,passwordType:"password",redirect:void 0,noticeData:{},title:"龙洞堡机场内部管理",logo:""}},watch:{$route:{handler:function(t){this.redirect=t.query&&t.query.redirect},immediate:!0}},created:function(){},methods:{showPwd:function(){var t=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){t.$refs.password.focus()}))},handleLogin:function(){var t=this;this.$refs.loginForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.$store.dispatch("user/login",t.loginForm).then(function(){var e=Object(r["a"])(Object(o["a"])().mark((function e(a){var s;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(2!==a.data.type){e.next=4;break}return e.next=3,t.$store.dispatch("user/getInfo");case 3:s=e.sent;case 4:1===a.data.type?t.$router.push({path:"/index"}):2===a.data.type&&1==s.adminType?t.$router.push({path:"/accountUnit/index"}):2===a.data.type&&2==s.adminType?t.$router.push({path:"/departmentName/index"}):3===a.data.type&&t.$router.push({path:"/unit/organization"}),t.loading=!1;case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){t.loading=!1}))}))}}},c=i,l=(a("34b6"),a("c8d4"),a("2877")),d=Object(l["a"])(c,s,n,!1,null,"3902930c",null);e["default"]=d.exports},c8d4:function(t,e,a){"use strict";a("5188")},d29a:function(t,e,a){},d68e:function(t,e,a){t.exports=a.p+"static/img/bg.63a53ff5.png"}}]);