webpackJsonp([4],{BwQS:function(e,r){},Go1s:function(e,r,s){"use strict";r.a={loginRules:{userName:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},formRules:{name:[{required:!0,message:"请输入活动名称",trigger:"blur"},{min:3,max:5,message:"长度在 3 到 5 个字符",trigger:"blur"}],region:[{required:!0,message:"请选择活动区域",trigger:"change"}],date1:[{type:"date",required:!0,message:"请选择日期",trigger:"change"}],date2:[{type:"date",required:!0,message:"请选择时间",trigger:"change"}],type:[{type:"array",required:!0,message:"请至少选择一个活动性质",trigger:"change"}],resource:[{required:!0,message:"请选择活动资源",trigger:"change"}],desc:[{required:!0,message:"请填写活动形式",trigger:"blur"}]}}},Quw4:function(e,r,s){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=s("Go1s"),a=s("SQ6o"),o=s("pd7E"),l={data:function(){return{userInfo:{userName:"admin",password:"admin"},rules:t.a.loginRules}},methods:{login:function(){var e=this;this.$refs.loginForm.validate(function(r){if(!r)return console.log("登录失败"),!1;e.userInfo.userName==o.a.userName&&e.userInfo.password==o.a.password?(a.a.setToken("123456789"),e.$router.push({path:"/"})):console.log("用户名或密码错误")})}}},i={render:function(){var e=this,r=e.$createElement,s=e._self._c||r;return s("div",{staticClass:"wrapper full-height"},[s("el-row",{staticClass:"flex-wrap full-height",attrs:{gutter:40}},[s("el-col",{attrs:{md:8}},[s("div",{staticClass:"left full-height"})]),e._v(" "),s("el-col",{attrs:{md:8}},[s("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.userInfo,"status-icon":"",rules:e.rules,"label-width":"100px","label-position":"top"}},[s("div",{staticClass:"login-title"},[e._v("SIGN IN")]),e._v(" "),s("el-form-item",{attrs:{label:"用户名",prop:"userName"}},[s("el-input",{attrs:{type:"text"},model:{value:e.userInfo.userName,callback:function(r){e.$set(e.userInfo,"userName",r)},expression:"userInfo.userName"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"密码",prop:"password"}},[s("el-input",{attrs:{type:"password"},model:{value:e.userInfo.password,callback:function(r){e.$set(e.userInfo,"password",r)},expression:"userInfo.password"}})],1),e._v(" "),s("el-form-item",[s("el-button",{staticClass:"login-btn",attrs:{type:"primary"},on:{click:function(r){return e.login()}}},[e._v("登录")])],1)],1)],1),e._v(" "),s("el-col",{attrs:{md:8}})],1)],1)},staticRenderFns:[]};var n=s("VU/8")(l,i,!1,function(e){s("BwQS")},"data-v-c414a0c8",null);r.default=n.exports}});