1 line
7.7 KiB
JavaScript
1 line
7.7 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39000622"],{1276:function(t,e,a){"use strict";var r=a("d784"),n=a("44e7"),i=a("825a"),s=a("1d80"),o=a("4840"),c=a("8aa5"),l=a("50c4"),u=a("14c3"),d=a("9263"),p=a("d039"),f=[].push,h=Math.min,m=4294967295,g=!p((function(){return!RegExp(m,"y")}));r("split",2,(function(t,e,a){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,a){var r=String(s(this)),i=void 0===a?m:a>>>0;if(0===i)return[];if(void 0===t)return[r];if(!n(t))return e.call(r,t,i);var o,c,l,u=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,g=new RegExp(t.source,p+"g");while(o=d.call(g,r)){if(c=g.lastIndex,c>h&&(u.push(r.slice(h,o.index)),o.length>1&&o.index<r.length&&f.apply(u,o.slice(1)),l=o[0].length,h=c,u.length>=i))break;g.lastIndex===o.index&&g.lastIndex++}return h===r.length?!l&&g.test("")||u.push(""):u.push(r.slice(h)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(t,a){return void 0===t&&0===a?[]:e.call(this,t,a)}:e,[function(e,a){var n=s(this),i=void 0==e?void 0:e[t];return void 0!==i?i.call(e,n,a):r.call(String(n),e,a)},function(t,n){var s=a(r,t,this,n,r!==e);if(s.done)return s.value;var d=i(t),p=String(this),f=o(d,RegExp),v=d.unicode,b=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(g?"y":"g"),x=new f(g?d:"^(?:"+d.source+")",b),w=void 0===n?m:n>>>0;if(0===w)return[];if(0===p.length)return null===u(x,p)?[p]:[];var y=0,C=0,$=[];while(C<p.length){x.lastIndex=g?C:0;var F,k=u(x,g?p:p.slice(C));if(null===k||(F=h(l(x.lastIndex+(g?0:C)),p.length))===y)C=c(p,C,v);else{if($.push(p.slice(y,C)),$.length===w)return $;for(var _=1;_<=k.length-1;_++)if($.push(k[_]),$.length===w)return $;C=y=F}}return $.push(p.slice(y)),$}]}),!g)},"408c":function(t,e,a){var r=a("2b3e"),n=function(){return r.Date.now()};t.exports=n},"44e7":function(t,e,a){var r=a("861d"),n=a("c6b6"),i=a("b622"),s=i("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==n(t))}},4840:function(t,e,a){var r=a("825a"),n=a("1c0b"),i=a("b622"),s=i("species");t.exports=function(t,e){var a,i=r(t).constructor;return void 0===i||void 0==(a=r(i)[s])?e:n(a)}},b047c:function(t,e,a){var r=a("1a8c"),n=a("408c"),i=a("b4b0"),s="Expected a function",o=Math.max,c=Math.min;function l(t,e,a){var l,u,d,p,f,h,m=0,g=!1,v=!1,b=!0;if("function"!=typeof t)throw new TypeError(s);function x(e){var a=l,r=u;return l=u=void 0,m=e,p=t.apply(r,a),p}function w(t){return m=t,f=setTimeout($,e),g?x(t):p}function y(t){var a=t-h,r=t-m,n=e-a;return v?c(n,d-r):n}function C(t){var a=t-h,r=t-m;return void 0===h||a>=e||a<0||v&&r>=d}function $(){var t=n();if(C(t))return F(t);f=setTimeout($,y(t))}function F(t){return f=void 0,b&&l?x(t):(l=u=void 0,p)}function k(){void 0!==f&&clearTimeout(f),m=0,l=h=u=f=void 0}function _(){return void 0===f?p:F(n())}function E(){var t=n(),a=C(t);if(l=arguments,u=this,h=t,a){if(void 0===f)return w(h);if(v)return clearTimeout(f),f=setTimeout($,e),x(h)}return void 0===f&&(f=setTimeout($,e)),p}return e=i(e)||0,r(a)&&(g=!!a.leading,v="maxWait"in a,d=v?o(i(a.maxWait)||0,e):d,b="trailing"in a?!!a.trailing:b),E.cancel=k,E.flush=_,E}t.exports=l},b4b0:function(t,e,a){var r=a("1a8c"),n=a("ffd6"),i=NaN,s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;function d(t){if("number"==typeof t)return t;if(n(t))return i;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var a=c.test(t);return a||l.test(t)?u(t.slice(2),a?2:8):o.test(t)?i:+t}t.exports=d},cd49:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"aui-wrapper aui-page__login"},[a("div",{staticClass:"aui-content__wrapper"},[a("main",{staticClass:"aui-content"},[a("div",{staticClass:"login-header"},[a("h2",{staticClass:"login-brand"},[t._v(t._s(t.$t("brand.lg")))])]),a("div",{staticClass:"login-body"},[a("h3",{staticClass:"login-title"},[t._v(t._s(t.$t("login.title")))]),a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"status-icon":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.dataFormSubmitHandle()}}},[a("el-form-item",{attrs:{prop:"username"}},[a("el-input",{attrs:{placeholder:t.$t("login.username")},model:{value:t.dataForm.username,callback:function(e){t.$set(t.dataForm,"username",e)},expression:"dataForm.username"}},[a("span",{staticClass:"el-input__icon",attrs:{slot:"prefix"},slot:"prefix"},[a("svg",{staticClass:"icon-svg",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-user"}})])])])],1),a("el-form-item",{attrs:{prop:"password"}},[a("el-input",{attrs:{type:"password",placeholder:t.$t("login.password")},model:{value:t.dataForm.password,callback:function(e){t.$set(t.dataForm,"password",e)},expression:"dataForm.password"}},[a("span",{staticClass:"el-input__icon",attrs:{slot:"prefix"},slot:"prefix"},[a("svg",{staticClass:"icon-svg",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-lock"}})])])])],1),a("el-form-item",{attrs:{prop:"captcha"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:14}},[a("el-input",{attrs:{placeholder:t.$t("login.captcha")},model:{value:t.dataForm.captcha,callback:function(e){t.$set(t.dataForm,"captcha",e)},expression:"dataForm.captcha"}},[a("span",{staticClass:"el-input__icon",attrs:{slot:"prefix"},slot:"prefix"},[a("svg",{staticClass:"icon-svg",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-safetycertificate"}})])])])],1),a("el-col",{staticClass:"login-captcha",attrs:{span:10}},[a("img",{attrs:{src:t.captchaPath},on:{click:function(e){return t.getCaptcha()}}})])],1)],1),a("el-form-item",[a("el-button",{staticClass:"w-percent-100",attrs:{type:"primary"},on:{click:function(e){return t.dataFormSubmitHandle()}}},[t._v(t._s(t.$t("login.title")))])],1)],1)],1),a("div",{staticClass:"login-footer"},[a("p",[t._v(t._s(t.$t("login.copyright")))])])])])])},n=[],i=(a("99af"),a("d3b7"),a("ac1f"),a("3ca3"),a("5319"),a("1276"),a("ddb0"),a("2b3d"),a("a78e")),s=a.n(i),o=a("b047c"),c=a.n(o),l=a("ed08"),u={data:function(){return{captchaPath:"",dataForm:{username:"admin",password:"admin",uuid:"string",captcha:""}}},computed:{dataRule:function(){return{username:[{required:!0,message:this.$t("validate.required"),trigger:"blur"}],password:[{required:!0,message:this.$t("validate.required"),trigger:"blur"}],captcha:[{required:!0,message:this.$t("validate.required"),trigger:"blur"}]}}},created:function(){var t=this,e=window.location.href,a=e.split("?")[1];if(a){var r=new URLSearchParams(a);this.dataForm.username=r.get("name"),this.dataForm.password=r.get("psd"),this.dataForm.captcha="1",this.$http.post("/login",this.dataForm).then((function(e){var a=e.data;if(0!==a.code)return t.getCaptcha(),t.$message.error(a.msg);s.a.set("token",a.data.token),t.$router.replace({name:"home"})})).catch((function(){}))}else this.getCaptcha()},methods:{getCaptcha:function(){this.dataForm.uuid=Object(l["e"])(),this.captchaPath="".concat(window.SITE_CONFIG["apiURL"],"/captcha?uuid=").concat(this.dataForm.uuid)},dataFormSubmitHandle:c()((function(){var t=this;this.$refs["dataForm"].validate((function(e){if(!e)return!1;t.$http.post("/login",t.dataForm).then((function(e){var a=e.data;if(0!==a.code)return t.getCaptcha(),t.$message.error(a.msg);s.a.set("token",a.data.token),t.$router.replace({name:"home"})})).catch((function(){}))}))}),1e3,{leading:!0,trailing:!1})}},d=u,p=a("2877"),f=Object(p["a"])(d,r,n,!1,null,null,null);e["default"]=f.exports},ffd6:function(t,e,a){var r=a("3729"),n=a("1310"),i="[object Symbol]";function s(t){return"symbol"==typeof t||n(t)&&r(t)==i}t.exports=s}}]); |