(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ee1cab9e"],{"498a":function(e,t,n){"use strict";var i=n("23e7"),a=n("58a8").trim,s=n("e070");i({target:"String",proto:!0,forced:s("trim")},{trim:function(){return a(this)}})},5118:function(e,t,n){(function(e){var i="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,a=Function.prototype.apply;function s(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new s(a.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(a.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("6017"),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("c8ba"))},6017:function(e,t,n){(function(e,t){(function(e,n){"use strict";if(!e.setImmediate){var i,a=1,s={},o=!1,c=e.document,r=Object.getPrototypeOf&&Object.getPrototypeOf(e);r=r&&r.setTimeout?r:e,"[object process]"==={}.toString.call(e.process)?m():p()?v():e.MessageChannel?h():c&&"onreadystatechange"in c.createElement("script")?g():k(),r.setImmediate=l,r.clearImmediate=u}function l(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return s[a]=o,i(a),a++}function u(e){delete s[e]}function d(e){var t=e.callback,i=e.args;switch(i.length){case 0:t();break;case 1:t(i[0]);break;case 2:t(i[0],i[1]);break;case 3:t(i[0],i[1],i[2]);break;default:t.apply(n,i);break}}function f(e){if(o)setTimeout(f,0,e);else{var t=s[e];if(t){o=!0;try{d(t)}finally{u(e),o=!1}}}}function m(){i=function(e){t.nextTick((function(){f(e)}))}}function p(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}function v(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"===typeof n.data&&0===n.data.indexOf(t)&&f(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),i=function(n){e.postMessage(t+n,"*")}}function h(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;f(t)},i=function(t){e.port2.postMessage(t)}}function g(){var e=c.documentElement;i=function(t){var n=c.createElement("script");n.onreadystatechange=function(){f(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}function k(){i=function(e){setTimeout(f,0,e)}}})("undefined"===typeof self?"undefined"===typeof e?this:e:self)}).call(this,n("c8ba"),n("4362"))},"78b3":function(e,t,n){},c6f7:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page",class:{"show-navitive":e.navtive}},[n("div",{staticClass:"wrapper-parent"},[n("div",{staticClass:"wrapper-content"},[n("div",{staticClass:"login"},[n("div",{staticClass:"login-header"},[e._v("用户登录")]),n("div",{staticClass:"login-content"},[n("div",{staticClass:"input-item"},[n("el-input",{attrs:{placeholder:"请输入用户名","prefix-icon":"el-icon-user-solid",clearable:""},on:{focus:e.focus},model:{value:e.user.name,callback:function(t){e.$set(e.user,"name",t)},expression:"user.name"}})],1),n("div",{staticClass:"input-item"},[n("el-input",{attrs:{type:"password","prefix-icon":"el-icon-lock",placeholder:"请输入密码",clearable:""},on:{focus:e.focus},model:{value:e.user.password,callback:function(t){e.$set(e.user,"password",t)},expression:"user.password"}})],1),n("div",{staticClass:"input-item"},[n("el-row",[n("el-col",{attrs:{span:12}},[n("el-checkbox",{model:{value:e.user.checked,callback:function(t){e.$set(e.user,"checked",t)},expression:"user.checked"}},[e._v("记住用户")])],1),n("el-col",{attrs:{span:12}},[n("div",{staticClass:"text-right"},[e._v(" "+e._s(e.msg)+" ")])])],1)],1),n("div",{staticClass:"input-item right"},[n("el-button",{attrs:{type:"warning",size:"small",loading:e.loading},on:{click:e.login}},[e._v("登录")])],1)])])])]),n("el-dialog",{attrs:{title:"提示",visible:e.$store.state.serveBreak,width:"30%"},on:{"update:visible":function(t){return e.$set(e.$store.state,"serveBreak",t)}}},[n("div",{staticStyle:{"text-align":"center"}},[n("span",[e._v("服务器断开或重启")])]),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.changeServeBreak}},[e._v("确 定")])],1)])],1)},a=[],s=(n("b0c0"),n("498a"),n("a7fe")),o=n("5118"),c={data:function(){var e=new s["b"],t=e.getCookie("username");return t=t||"",{hCookie:e,user:{name:t,password:"",checked:!0},msg:"",loading:!1,navtive:!1}},methods:{focus:function(){this.msg=""},login:function(){var e=this,t=this.getUser();1==t.code?(this.loading=!0,this.$axios({method:"post",url:"LoginAction!login",data:t.data}).then((function(t){var n=JSON.parse(t.data.result);1==n.code?e.$nextTick((function(){e.$store.dispatch("changeServeLink",!0),Object(o["setTimeout"])((function(){e.$router.push("/index"),e.loading=!1}),500)})):(e.msg=n.msg,e.loading=!1)})).catch((function(){e.loading=!1,e.msg="登录失败,请检测网路!"}))):this.msg=t.msg},getUser:function(){var e=this.user.checked?1:0,t=this.user.name.trim(),n=this.user.password.trim(),i={code:1,data:"",msg:""};return""==t?(i.code=0,i.msg="用户名不能为空"):""==n?(i.code=0,i.msg="密码不能为空"):(n=Object(s["f"])(n),i.data="uinf.UName="+t+"&uinf.Upassword="+n+"&uinf.UId="+e),1==i.code&&(1==e?this.hCookie.setCookie("username",t):this.hCookie.setCookie("username","")),i},changeServeBreak:function(){this.$store.dispatch("changeServeBreak",!1)}},mounted:function(){var e=this;this.$store.dispatch("changeServeLink",!1),window["toggleNavitivecalljs"]=function(t){e.navtive=!!t}}},r=c,l=(n("ec23"),n("2877")),u=Object(l["a"])(r,i,a,!1,null,"74479f12",null);t["default"]=u.exports},e070:function(e,t,n){var i=n("d039"),a=n("5899"),s="
";e.exports=function(e){return i((function(){return!!a[e]()||s[e]()!=s||a[e].name!==e}))}},ec23:function(e,t,n){"use strict";var i=n("78b3"),a=n.n(i);a.a}}]);
|