1.b8f1ff581d25527d4f03.chunk.js 14 KB

12345678910
  1. webpackJsonp([1],{172:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"LoginForm",props:{userNameRules:{type:Array,default:function(){return[{required:!0,message:"账号不能为空",trigger:"blur"}]}},passwordRules:{type:Array,default:function(){return[{required:!0,message:"密码不能为空",trigger:"blur"}]}}},data:function(){return{form:{userName:"",password:""}}},computed:{rules:function(){return{userName:this.userNameRules,password:this.passwordRules}}},methods:{handleSubmit:function(){var t=this;this.$refs.loginForm.validate(function(e){e&&t.$emit("on-success-valid",{userName:t.form.userName,password:t.form.password})})}}}},175:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(212),s=r.n(o),i=r(17),n=r(196),a=r.n(n),u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t};e.default={components:{LoginForm:s.a},methods:u({},r.i(i.b)({handle_login:"HANDLE_LOGIN"}),{handleSubmit:function(t){var e=this,r=t.userName,o=t.password,o=a()(o);this.handle_login({userName:r,password:o}).then(function(t){e.$router.push({path:"/list"})})}})}},192:function(t,e){},196:function(module,exports,__webpack_require__){(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__;/**
  2. * [js-md5]{@link https://github.com/emn178/js-md5}
  3. *
  4. * @namespace md5
  5. * @version 0.7.3
  6. * @author Chen, Yi-Cyuan [emn178@gmail.com]
  7. * @copyright Chen, Yi-Cyuan 2014-2017
  8. * @license MIT
  9. */
  10. !function(){"use strict";function Md5(t){if(t)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__(227),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e){return new Md5(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e<OUTPUT_TYPES.length;++e){var r=OUTPUT_TYPES[e];t[r]=createOutputMethod(r)}return t},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if("string"==typeof t)return crypto.createHash("md5").update(t,"utf8").digest("hex");if(null===t||void 0===t)throw ERROR;return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash("md5").update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod};Md5.prototype.update=function(t){if(!this.finalized){var e,r=typeof t;if("string"!==r){if("object"!==r)throw ERROR;if(null===t)throw ERROR;if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw ERROR;e=!0}for(var o,s,i=0,n=t.length,a=this.blocks,u=this.buffer8;i<n;){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),e)if(ARRAY_BUFFER)for(s=this.start;i<n&&s<64;++i)u[s++]=t[i];else for(s=this.start;i<n&&s<64;++i)a[s>>2]|=t[i]<<SHIFT[3&s++];else if(ARRAY_BUFFER)for(s=this.start;i<n&&s<64;++i)o=t.charCodeAt(i),o<128?u[s++]=o:o<2048?(u[s++]=192|o>>6,u[s++]=128|63&o):o<55296||o>=57344?(u[s++]=224|o>>12,u[s++]=128|o>>6&63,u[s++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++i)),u[s++]=240|o>>18,u[s++]=128|o>>12&63,u[s++]=128|o>>6&63,u[s++]=128|63&o);else for(s=this.start;i<n&&s<64;++i)o=t.charCodeAt(i),o<128?a[s>>2]|=o<<SHIFT[3&s++]:o<2048?(a[s>>2]|=(192|o>>6)<<SHIFT[3&s++],a[s>>2]|=(128|63&o)<<SHIFT[3&s++]):o<55296||o>=57344?(a[s>>2]|=(224|o>>12)<<SHIFT[3&s++],a[s>>2]|=(128|o>>6&63)<<SHIFT[3&s++],a[s>>2]|=(128|63&o)<<SHIFT[3&s++]):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++i)),a[s>>2]|=(240|o>>18)<<SHIFT[3&s++],a[s>>2]|=(128|o>>12&63)<<SHIFT[3&s++],a[s>>2]|=(128|o>>6&63)<<SHIFT[3&s++],a[s>>2]|=(128|63&o)<<SHIFT[3&s++]);this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>2]|=EXTRA[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var t,e,r,o,s,i,n=this.blocks;this.first?(t=n[0]-680876937,t=(t<<7|t>>>25)-271733879<<0,o=(-1732584194^2004318071&t)+n[1]-117830708,o=(o<<12|o>>>20)+t<<0,r=(-271733879^o&(-271733879^t))+n[2]-1126478375,r=(r<<17|r>>>15)+o<<0,e=(t^r&(o^t))+n[3]-1316259209,e=(e<<22|e>>>10)+r<<0):(t=this.h0,e=this.h1,r=this.h2,o=this.h3,t+=(o^e&(r^o))+n[0]-680876936,t=(t<<7|t>>>25)+e<<0,o+=(r^t&(e^r))+n[1]-389564586,o=(o<<12|o>>>20)+t<<0,r+=(e^o&(t^e))+n[2]+606105819,r=(r<<17|r>>>15)+o<<0,e+=(t^r&(o^t))+n[3]-1044525330,e=(e<<22|e>>>10)+r<<0),t+=(o^e&(r^o))+n[4]-176418897,t=(t<<7|t>>>25)+e<<0,o+=(r^t&(e^r))+n[5]+1200080426,o=(o<<12|o>>>20)+t<<0,r+=(e^o&(t^e))+n[6]-1473231341,r=(r<<17|r>>>15)+o<<0,e+=(t^r&(o^t))+n[7]-45705983,e=(e<<22|e>>>10)+r<<0,t+=(o^e&(r^o))+n[8]+1770035416,t=(t<<7|t>>>25)+e<<0,o+=(r^t&(e^r))+n[9]-1958414417,o=(o<<12|o>>>20)+t<<0,r+=(e^o&(t^e))+n[10]-42063,r=(r<<17|r>>>15)+o<<0,e+=(t^r&(o^t))+n[11]-1990404162,e=(e<<22|e>>>10)+r<<0,t+=(o^e&(r^o))+n[12]+1804603682,t=(t<<7|t>>>25)+e<<0,o+=(r^t&(e^r))+n[13]-40341101,o=(o<<12|o>>>20)+t<<0,r+=(e^o&(t^e))+n[14]-1502002290,r=(r<<17|r>>>15)+o<<0,e+=(t^r&(o^t))+n[15]+1236535329,e=(e<<22|e>>>10)+r<<0,t+=(r^o&(e^r))+n[1]-165796510,t=(t<<5|t>>>27)+e<<0,o+=(e^r&(t^e))+n[6]-1069501632,o=(o<<9|o>>>23)+t<<0,r+=(t^e&(o^t))+n[11]+643717713,r=(r<<14|r>>>18)+o<<0,e+=(o^t&(r^o))+n[0]-373897302,e=(e<<20|e>>>12)+r<<0,t+=(r^o&(e^r))+n[5]-701558691,t=(t<<5|t>>>27)+e<<0,o+=(e^r&(t^e))+n[10]+38016083,o=(o<<9|o>>>23)+t<<0,r+=(t^e&(o^t))+n[15]-660478335,r=(r<<14|r>>>18)+o<<0,e+=(o^t&(r^o))+n[4]-405537848,e=(e<<20|e>>>12)+r<<0,t+=(r^o&(e^r))+n[9]+568446438,t=(t<<5|t>>>27)+e<<0,o+=(e^r&(t^e))+n[14]-1019803690,o=(o<<9|o>>>23)+t<<0,r+=(t^e&(o^t))+n[3]-187363961,r=(r<<14|r>>>18)+o<<0,e+=(o^t&(r^o))+n[8]+1163531501,e=(e<<20|e>>>12)+r<<0,t+=(r^o&(e^r))+n[13]-1444681467,t=(t<<5|t>>>27)+e<<0,o+=(e^r&(t^e))+n[2]-51403784,o=(o<<9|o>>>23)+t<<0,r+=(t^e&(o^t))+n[7]+1735328473,r=(r<<14|r>>>18)+o<<0,e+=(o^t&(r^o))+n[12]-1926607734,e=(e<<20|e>>>12)+r<<0,s=e^r,t+=(s^o)+n[5]-378558,t=(t<<4|t>>>28)+e<<0,o+=(s^t)+n[8]-2022574463,o=(o<<11|o>>>21)+t<<0,i=o^t,r+=(i^e)+n[11]+1839030562,r=(r<<16|r>>>16)+o<<0,e+=(i^r)+n[14]-35309556,e=(e<<23|e>>>9)+r<<0,s=e^r,t+=(s^o)+n[1]-1530992060,t=(t<<4|t>>>28)+e<<0,o+=(s^t)+n[4]+1272893353,o=(o<<11|o>>>21)+t<<0,i=o^t,r+=(i^e)+n[7]-155497632,r=(r<<16|r>>>16)+o<<0,e+=(i^r)+n[10]-1094730640,e=(e<<23|e>>>9)+r<<0,s=e^r,t+=(s^o)+n[13]+681279174,t=(t<<4|t>>>28)+e<<0,o+=(s^t)+n[0]-358537222,o=(o<<11|o>>>21)+t<<0,i=o^t,r+=(i^e)+n[3]-722521979,r=(r<<16|r>>>16)+o<<0,e+=(i^r)+n[6]+76029189,e=(e<<23|e>>>9)+r<<0,s=e^r,t+=(s^o)+n[9]-640364487,t=(t<<4|t>>>28)+e<<0,o+=(s^t)+n[12]-421815835,o=(o<<11|o>>>21)+t<<0,i=o^t,r+=(i^e)+n[15]+530742520,r=(r<<16|r>>>16)+o<<0,e+=(i^r)+n[2]-995338651,e=(e<<23|e>>>9)+r<<0,t+=(r^(e|~o))+n[0]-198630844,t=(t<<6|t>>>26)+e<<0,o+=(e^(t|~r))+n[7]+1126891415,o=(o<<10|o>>>22)+t<<0,r+=(t^(o|~e))+n[14]-1416354905,r=(r<<15|r>>>17)+o<<0,e+=(o^(r|~t))+n[5]-57434055,e=(e<<21|e>>>11)+r<<0,t+=(r^(e|~o))+n[12]+1700485571,t=(t<<6|t>>>26)+e<<0,o+=(e^(t|~r))+n[3]-1894986606,o=(o<<10|o>>>22)+t<<0,r+=(t^(o|~e))+n[10]-1051523,r=(r<<15|r>>>17)+o<<0,e+=(o^(r|~t))+n[1]-2054922799,e=(e<<21|e>>>11)+r<<0,t+=(r^(e|~o))+n[8]+1873313359,t=(t<<6|t>>>26)+e<<0,o+=(e^(t|~r))+n[15]-30611744,o=(o<<10|o>>>22)+t<<0,r+=(t^(o|~e))+n[6]-1560198380,r=(r<<15|r>>>17)+o<<0,e+=(o^(r|~t))+n[13]+1309151649,e=(e<<21|e>>>11)+r<<0,t+=(r^(e|~o))+n[4]-145523070,t=(t<<6|t>>>26)+e<<0,o+=(e^(t|~r))+n[11]-1120210379,o=(o<<10|o>>>22)+t<<0,r+=(t^(o|~e))+n[2]+718787259,r=(r<<15|r>>>17)+o<<0,e+=(o^(r|~t))+n[9]-343485551,e=(e<<21|e>>>11)+r<<0,this.first?(this.h0=t+1732584193<<0,this.h1=e-271733879<<0,this.h2=r-1732584194<<0,this.h3=o+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+r<<0,this.h3=this.h3+o<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,o=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,o=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&o,o>>8&255,o>>16&255,o>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,e,r,o="",s=this.array(),i=0;i<15;)t=s[i++],e=s[i++],r=s[i++],o+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[63&(t<<4|e>>>4)]+BASE64_ENCODE_CHAR[63&(e<<2|r>>>6)]+BASE64_ENCODE_CHAR[63&r];return t=s[i],o+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}()}).call(exports,__webpack_require__(5),__webpack_require__(1))},212:function(t,e,r){var o=r(16)(r(172),r(220),null,null);o.options.__file="D:\\workarea\\normal\\crontab\\src\\components\\login-form\\login-form.vue",o.esModule&&Object.keys(o.esModule).some(function(t){return"default"!==t&&"__esModule"!==t})&&console.error("named exports are not supported in *.vue files."),o.options.functional&&console.error("[vue-loader] login-form.vue: functional components are not supported with templates, they should use render functions."),t.exports=o.exports},217:function(t,e,r){t.exports={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"login"},[r("div",{staticClass:"login-con"},[r("Card",{attrs:{icon:"log-in",title:"欢迎登录",bordered:!1}},[r("div",{staticClass:"form-con"},[r("login-form",{on:{"on-success-valid":t.handleSubmit}}),t._v(" "),r("p",{staticClass:"login-tip"},[t._v("请输入用户名和密码")])],1)])],1)])},staticRenderFns:[]},t.exports.render._withStripped=!0},220:function(t,e,r){t.exports={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("Form",{ref:"loginForm",attrs:{model:t.form,rules:t.rules},nativeOn:{keydown:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.handleSubmit(e):null}}},[r("FormItem",{attrs:{prop:"userName"}},[r("Input",{attrs:{placeholder:"请输入用户名"},model:{value:t.form.userName,callback:function(e){t.$set(t.form,"userName",e)},expression:"form.userName"}},[r("span",{attrs:{slot:"prepend"},slot:"prepend"},[r("Icon",{attrs:{size:16,type:"ios-person"}})],1)])],1),t._v(" "),r("FormItem",{attrs:{prop:"password"}},[r("Input",{attrs:{type:"password",placeholder:"请输入密码"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}},[r("span",{attrs:{slot:"prepend"},slot:"prepend"},[r("Icon",{attrs:{size:14,type:"md-lock"}})],1)])],1),t._v(" "),r("FormItem",[r("Button",{attrs:{type:"primary",long:""},on:{click:t.handleSubmit}},[t._v("登录")])],1)],1)},staticRenderFns:[]},t.exports.render._withStripped=!0},227:function(t,e){(function(e){t.exports=e}).call(e,{})},29:function(t,e,r){r(192);var o=r(16)(r(175),r(217),"data-v-35a49377",null);o.options.__file="D:\\workarea\\normal\\crontab\\src\\views\\login.vue",o.esModule&&Object.keys(o.esModule).some(function(t){return"default"!==t&&"__esModule"!==t})&&console.error("named exports are not supported in *.vue files."),o.options.functional&&console.error("[vue-loader] login.vue: functional components are not supported with templates, they should use render functions."),t.exports=o.exports}});