(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5fd9aa25"],{"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r("d3b7");function n(t,e,r,n,o,a,i){try{var c=t[a](i),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,s,"next",t)}function s(t){n(i,o,a,c,s,"throw",t)}c(void 0)}))}}},"372f":function(t,e,r){},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(j){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),i=new k(n||[]);return a._invoke=E(t,r,i),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(j){return{type:"throw",arg:j}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",m={};function g(){}function y(){}function v(){}var w={};s(w,a,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(B([])));x&&x!==r&&n.call(x,a)&&(w=x);var A=v.prototype=g.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,a,i,c){var s=l(t[o],t,a);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"===typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(s.arg)}var o;function a(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}this._invoke=a}function E(t,e,r){var n=f;return function(o,a){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw a;return O()}r.method=o,r.arg=a;while(1){var i=r.delegate;if(i){var c=_(i,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?p:h,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=p,r.method="throw",r.arg=s.arg)}}}function _(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function B(t){if(t){var r=t[a];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){while(++o<t.length)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:O}}function O(){return{value:e,done:!0}}return y.prototype=v,s(A,"constructor",v),s(v,"constructor",y),y.displayName=s(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,c,"GeneratorFunction")),t.prototype=Object.create(A),t},t.awrap=function(t){return{__await:t}},S(L.prototype),s(L.prototype,i,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new L(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(A),s(A,c,"Generator"),s(A,a,(function(){return this})),s(A,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){while(e.length){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=B,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(F),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;F(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:B(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},a55b:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"bd"},[t._m(0),r("div",{staticClass:"login"},[r("a-form-model",{ref:"ruleForm",staticClass:"login-form",attrs:{layout:"horizontal",model:t.form,rules:t.rules}},[r("a-form-model-item",{ref:"name",attrs:{prop:"name"}},[r("a-input",{attrs:{placeholder:"请输入用户名",size:"large",autocomplete:"new-password"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}},[r("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),r("a-form-model-item",{ref:"pwd",attrs:{prop:"pwd"}},[r("a-input-password",{attrs:{type:"password",placeholder:"请输入密码",size:"large",autocomplete:"new-password"},model:{value:t.form.pwd,callback:function(e){t.$set(t.form,"pwd",e)},expression:"form.pwd"}},[r("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),r("div",{staticStyle:{"margin-bottom":"20px"}},[r("a-checkbox",{staticStyle:{color:"#fff"},attrs:{checked:t.saveAccount},on:{change:t.isSave}},[t._v("记住密码")])],1),r("a-form-item",{staticStyle:{"text-align":"center"}},[r("a-button",{staticStyle:{width:"100%"},attrs:{type:"primary","html-type":"submit",size:"large",loading:t.isLoading},on:{click:t.handleSubmit}},[t._v(" 登录 ")])],1),r("center",[r("p",[t._v("技术支持:中国科学院")])])],1)],1)])},o=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"hedaer"},[r("h2",[t._v("新疆维吾尔自治区自然灾害综合监测预警中心")]),r("h1",[t._v("自然灾害综合风险预警发布及响应联动系统")])])}],a=r("1da1"),i=(r("96cf"),r("b0c0"),r("7ded")),c=r("852e"),s=r.n(c);const u="3.7.5",l=u,f="function"===typeof atob,h="function"===typeof btoa,d="function"===typeof Buffer,p="function"===typeof TextDecoder?new TextDecoder:void 0,m="function"===typeof TextEncoder?new TextEncoder:void 0,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y=Array.prototype.slice.call(g),v=(t=>{let e={};return t.forEach((t,r)=>e[t]=r),e})(y),w=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,b=String.fromCharCode.bind(String),x="function"===typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),A=t=>t.replace(/=/g,"").replace(/[+\/]/g,t=>"+"==t?"-":"_"),S=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),L=t=>{let e,r,n,o,a="";const i=t.length%3;for(let c=0;c<t.length;){if((r=t.charCodeAt(c++))>255||(n=t.charCodeAt(c++))>255||(o=t.charCodeAt(c++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|o,a+=y[e>>18&63]+y[e>>12&63]+y[e>>6&63]+y[63&e]}return i?a.slice(0,i-3)+"===".substring(i):a},E=h?t=>btoa(t):d?t=>Buffer.from(t,"binary").toString("base64"):L,_=d?t=>Buffer.from(t).toString("base64"):t=>{const e=4096;let r=[];for(let n=0,o=t.length;n<o;n+=e)r.push(b.apply(null,t.subarray(n,n+e)));return E(r.join(""))},C=(t,e=!1)=>e?A(_(t)):_(t),F=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?b(192|e>>>6)+b(128|63&e):b(224|e>>>12&15)+b(128|e>>>6&63)+b(128|63&e)}e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return b(240|e>>>18&7)+b(128|e>>>12&63)+b(128|e>>>6&63)+b(128|63&e)},k=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,B=t=>t.replace(k,F),O=d?t=>Buffer.from(t,"utf8").toString("base64"):m?t=>_(m.encode(t)):t=>E(B(t)),j=(t,e=!1)=>e?A(O(t)):O(t),P=t=>j(t,!0),U=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,I=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return b(55296+(r>>>10))+b(56320+(1023&r));case 3:return b((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return b((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},N=t=>t.replace(U,I),T=t=>{if(t=t.replace(/\s+/g,""),!w.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));let e,r,n,o="";for(let a=0;a<t.length;)e=v[t.charAt(a++)]<<18|v[t.charAt(a++)]<<12|(r=v[t.charAt(a++)])<<6|(n=v[t.charAt(a++)]),o+=64===r?b(e>>16&255):64===n?b(e>>16&255,e>>8&255):b(e>>16&255,e>>8&255,255&e);return o},R=f?t=>atob(S(t)):d?t=>Buffer.from(t,"base64").toString("binary"):T,z=d?t=>x(Buffer.from(t,"base64")):t=>x(R(t).split("").map(t=>t.charCodeAt(0))),G=t=>z(D(t)),$=d?t=>Buffer.from(t,"base64").toString("utf8"):p?t=>p.decode(z(t)):t=>N(R(t)),D=t=>S(t.replace(/[-_]/g,t=>"-"==t?"+":"/")),Z=t=>$(D(t)),J=t=>{if("string"!==typeof t)return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},q=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),V=function(){const t=(t,e)=>Object.defineProperty(String.prototype,t,q(e));t("fromBase64",(function(){return Z(this)})),t("toBase64",(function(t){return j(this,t)})),t("toBase64URI",(function(){return j(this,!0)})),t("toBase64URL",(function(){return j(this,!0)})),t("toUint8Array",(function(){return G(this)}))},Y=function(){const t=(t,e)=>Object.defineProperty(Uint8Array.prototype,t,q(e));t("toBase64",(function(t){return C(this,t)})),t("toBase64URI",(function(){return C(this,!0)})),t("toBase64URL",(function(){return C(this,!0)}))},H=()=>{V(),Y()},K={version:u,VERSION:l,atob:R,atobPolyfill:T,btoa:E,btoaPolyfill:L,fromBase64:Z,toBase64:j,encode:j,encodeURI:P,encodeURL:P,utob:B,btou:N,decode:Z,isValid:J,fromUint8Array:C,toUint8Array:G,extendString:V,extendUint8Array:Y,extendBuiltins:H};var M={name:"login",data:function(){return{isLoading:!1,saveAccount:!1,form:{name:"",pwd:""},rules:{name:[{required:!0,message:"请输入用户名",trigger:"blur"}],pwd:[{required:!0,message:"请输入用户密码",trigger:"blur"}]},menu:[]}},created:function(){this.hasUserCodeOrPassword()},methods:{hasUserCodeOrPassword:function(){localStorage.getItem("userName")&&localStorage.getItem("userPassword")&&(this.form.name=localStorage.getItem("userName"),this.form.pwd=K.decode(localStorage.getItem("userPassword")),this.saveAccount=!0)},isSave:function(t){var e=this;e.saveAccount=!e.saveAccount},handleSubmit:function(){var t=this;this.$refs.ruleForm.validate(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(r){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r){e.next=9;break}return t.isLoading=!0,e.next=4,Object(i["d"])(t.form);case 4:n=e.sent,100===n.data.code?(s.a.set("resTk",n.data.data.tk),s.a.set("resUid",n.data.data.uid),s.a.set("userInfo",JSON.stringify(n.data.data),{expires:7}),t.saveAccount?(localStorage.setItem("userName",t.form.name),localStorage.setItem("userPassword",K.encode(t.form.pwd))):(localStorage.removeItem("userName"),localStorage.removeItem("userPassword")),t.$router.push("/home")):t.$message.warning(n.data.msg),t.isLoading=!1,e.next=11;break;case 9:return console.log("error submit!!"),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}},Q=M,W=(r("eeb4"),r("2877")),X=Object(W["a"])(Q,n,o,!1,null,"adf8ec5a",null);e["default"]=X.exports},b0c0:function(t,e,r){var n=r("83ab"),o=r("9bf2").f,a=Function.prototype,i=a.toString,c=/^\s*function ([^ (]*)/,s="name";n&&!(s in a)&&o(a,s,{configurable:!0,get:function(){try{return i.call(this).match(c)[1]}catch(t){return""}}})},eeb4:function(t,e,r){"use strict";r("372f")}}]);
|