group-controlApp.fbd84220.js 3.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["group-controlApp"],{"0513":function(e,t,n){},c8fb:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"notfound"},[n("div",{staticClass:"sun"}),n("form",{attrs:{role:"form"}},[n("div"),n("div",[n("el-input",{attrs:{name:"username",placeholder:"请输入用户名",required:"required"},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}})],1),n("div",[n("el-input",{attrs:{placeholder:"请输入密码","show-password":"",required:"required"},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})],1),n("div",[n("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return t.preventDefault(),e.submit(t)}}},[e._v(e._s(e.loading?"请稍等":"登录"))]),e.error?n("p",{staticClass:"error"},[e._v("登录账号或密码错误")]):e._e()],1)])])},o=[],s=(n("a481"),n("7ded")),a={name:"ControlLogin",data:function(){return{error:!1,loading:!1,username:"",password:""}},watch:{},created:function(){var e=this;document.onkeypress=function(t){var n;if(!t)window.event;t.keyCode?n=t.keyCode:t.which&&(n=t.which),13==n&&e.submit()}},mounted:function(){},methods:{submit:function(){var e=this;this.username&&this.password?(this.loading=!0,Object(s["b"])({username:this.username,password:this.password,loginFrom:"student"}).then((function(t){t&&"1"==t.ok?e.$router.replace({name:"App"}):e.error=!0,e.loading=!1}),(function(){e.error=!0,e.loading=!1}))):this.error=!0}}},i=a,c=(n("e810"),n("cf73"),n("2877")),l=Object(c["a"])(i,r,o,!1,null,"ad9aeacc",null);t["default"]=l.exports},cf73:function(e,t,n){"use strict";var r=n("f6bf"),o=n.n(r);o.a},dec2:function(e,t,n){"use strict";var r=n("0513"),o=n.n(r);o.a},f078:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"home-page"},[n("SrpElement",{attrs:{config:e.config,type:e.type}}),n("div",{staticClass:"ee"})],1)},o=[],s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.currentComponent,{tag:"component",attrs:{config:e.config}})},a=[],i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"default-label",style:e.config.eleStyle,domProps:{innerHTML:e._s(e.config.text)}})},c=[],l={props:{config:Object}},u=l,d=n("2877"),f=Object(d["a"])(u,i,c,!1,null,"a8a76f14",null),p=f.exports,m={name:"SrpElement",components:{SrpLabel:p},props:{config:Object,type:String},data:function(){return{}},computed:{currentComponent:function(){var e=this.type.charAt(0).toUpperCase()+this.type.slice(1);return"Srp"+e}}},h=m,v=Object(d["a"])(h,s,a,!1,null,null,null),b=v.exports,g={name:"UserTest",components:{SrpElement:b},data:function(){return{config:{text:"单行文字",fillType:"none",colorPercent:0,imgPercent:0,backgroundColor:"#fff",color:"#fff",src:"",borderType:"none",borderSize:"1",eleStyle:{}},type:"label"}},created:function(){},methods:{}},w=g,y=(n("dec2"),Object(d["a"])(w,r,o,!1,null,"67885581",null));t["default"]=y.exports},f6bf:function(e,t,n){}}]);