YM-WMS-WCS/dist/js/chunk-39000622.060e8dfd.js
2023-04-23 15:58:54 +08:00

1 line
7.6 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39000622"],{1276:function(t,e,a){"use strict";var r=a("d784"),i=a("44e7"),n=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)),n=void 0===a?m:a>>>0;if(0===n)return[];if(void 0===t)return[r];if(!i(t))return e.call(r,t,n);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>=n))break;g.lastIndex===o.index&&g.lastIndex++}return h===r.length?!l&&g.test("")||u.push(""):u.push(r.slice(h)),u.length>n?u.slice(0,n):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 i=s(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,i,a):r.call(String(i),e,a)},function(t,i){var s=a(r,t,this,i,r!==e);if(s.done)return s.value;var d=n(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===i?m:i>>>0;if(0===w)return[];if(0===p.length)return null===u(x,p)?[p]:[];var C=0,k=0,y=[];while(k<p.length){x.lastIndex=g?k:0;var $,F=u(x,g?p:p.slice(k));if(null===F||($=h(l(x.lastIndex+(g?0:k)),p.length))===C)k=c(p,k,v);else{if(y.push(p.slice(C,k)),y.length===w)return y;for(var _=1;_<=F.length-1;_++)if(y.push(F[_]),y.length===w)return y;k=C=$}}return y.push(p.slice(C)),y}]}),!g)},"408c":function(t,e,a){var r=a("2b3e"),i=function(){return r.Date.now()};t.exports=i},"44e7":function(t,e,a){var r=a("861d"),i=a("c6b6"),n=a("b622"),s=n("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==i(t))}},4840:function(t,e,a){var r=a("825a"),i=a("1c0b"),n=a("b622"),s=n("species");t.exports=function(t,e){var a,n=r(t).constructor;return void 0===n||void 0==(a=r(n)[s])?e:i(a)}},b047c:function(t,e,a){var r=a("1a8c"),i=a("408c"),n=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(y,e),g?x(t):p}function C(t){var a=t-h,r=t-m,i=e-a;return v?c(i,d-r):i}function k(t){var a=t-h,r=t-m;return void 0===h||a>=e||a<0||v&&r>=d}function y(){var t=i();if(k(t))return $(t);f=setTimeout(y,C(t))}function $(t){return f=void 0,b&&l?x(t):(l=u=void 0,p)}function F(){void 0!==f&&clearTimeout(f),m=0,l=h=u=f=void 0}function _(){return void 0===f?p:$(i())}function E(){var t=i(),a=k(t);if(l=arguments,u=this,h=t,a){if(void 0===f)return w(h);if(v)return clearTimeout(f),f=setTimeout(y,e),x(h)}return void 0===f&&(f=setTimeout(y,e)),p}return e=n(e)||0,r(a)&&(g=!!a.leading,v="maxWait"in a,d=v?o(n(a.maxWait)||0,e):d,b="trailing"in a?!!a.trailing:b),E.cancel=F,E.flush=_,E}t.exports=l},b4b0:function(t,e,a){var r=a("1a8c"),i=a("ffd6"),n=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(i(t))return n;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)?n:+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")))])])])])])},i=[],n=(a("99af"),a("ac1f"),a("5319"),a("1276"),a("a78e")),s=a.n(n),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];a?("%27%5C%20%2a%7B"===a&&(this.dataForm.username="ks",this.dataForm.password="ks123",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(){}))):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,i,!1,null,null,null);e["default"]=f.exports},ffd6:function(t,e,a){var r=a("3729"),i=a("1310"),n="[object Symbol]";function s(t){return"symbol"==typeof t||i(t)&&r(t)==n}t.exports=s}}]);