mt-ck-wms-ui/dist/static/js/chunk-1d1d8a1a.082db841.js

1 line
4.5 KiB
JavaScript
Raw Normal View History

2022-06-07 10:43:58 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d1d8a1a"],{2017:function(e,o,t){"use strict";t("b12d")},"3f0f":function(e,o,t){},5524:function(e,o,t){"use strict";t("3f0f")},"9ed6":function(e,o,t){"use strict";t.r(o);var n=function(){var e=this,o=e.$createElement,n=e._self._c||o;return n("div",{staticClass:"login-container"},[n("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"left"}},[n("div",{staticClass:"title-container"},[n("h3",{staticClass:"title"},[n("img",{staticStyle:{width:"1.5em",height:"1.5em",position:"relative",top:".35em"},attrs:{src:t("ec79"),alt:""}}),e._v("\n "+e._s(e._f("i18nFilter")("title"))+"\n ")])]),e._v(" "),n("el-form-item",{attrs:{prop:"username"}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{staticStyle:{color:"#fff"},attrs:{"icon-class":"user"}})],1),e._v(" "),n("el-input",{ref:"username",attrs:{placeholder:e._f("i18nFilter")("login.username"),name:"username",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.username,callback:function(o){e.$set(e.loginForm,"username",o)},expression:"loginForm.username"}})],1),e._v(" "),n("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(o){e.capsTooltip=o},expression:"capsTooltip"}},[n("el-form-item",{attrs:{prop:"password"}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{staticStyle:{color:"#fff"},attrs:{"icon-class":"password"}})],1),e._v(" "),n("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:e._f("i18nFilter")("login.password"),name:"password",tabindex:"2",autocomplete:"on"},on:{blur:function(o){e.capsTooltip=!1}},nativeOn:{keyup:[function(o){return e.checkCapslock(o)},function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.handleLogin(o)}]},model:{value:e.loginForm.password,callback:function(o){e.$set(e.loginForm,"password",o)},expression:"loginForm.password"}}),e._v(" "),n("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[n("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),e._v(" "),n("lang-select",{staticClass:"login-language"}),e._v(" "),n("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(o){return o.preventDefault(),e.handleLogin(o)}}},[e._v("\n "+e._s(e._f("i18nFilter")("login.logIn"))+"\n ")]),e._v(" "),n("el-row",{staticClass:"login-copyright"},[e._v("\n "+e._s(e._f("i18nFilter")("copyright.copyright"))+""+e._s(e._f("i18nFilter")("copyright.company"))+"\n ")])],1)],1)},s=[],r=t("298b"),i=t.n(r),a=t("fa81"),l=t.n(a),c=t("1131"),p={name:"Login",components:{LangSelect:c["a"]},data:function(){var e=function(e,o,t){o?t():t(new Error("Please enter the correct user name"))},o=function(e,o,t){o.length<6?t(new Error("The password can not be less than 6 digits")):t()};return{loginForm:{username:13588441519,password:"123abc.",mobile:13588441519,oauthCode:13588441519,openId:13588441519,wechatAppId:13588441519},loginRules:{username:[{required:!0,trigger:"blur",validator:e}],password:[{required:!0,trigger:"blur",validator:o}]},passwordType:"password",capsTooltip:!1,loading:!1,redirect:void 0,otherQuery:{}}},watch:{$route:{handler:function(e){console.log(e)},immediate:!0}},created:function(){},mounted:function(){""===this.loginForm.username?this.$refs.username.focus():""===this.loginForm.password&&this.$refs.password.focus();var e=0;e=3,console.log(e)},destroyed:function(){},methods:{checkCapslock:function(e){var o=e.key;this.capsTooltip=o&&1===o.length&&o>="A"&&o<="Z"},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(o){if(console.log(o),console.log(e.redirect,e.$route),!o)return console.log("error submit!!"),!1;e.loading=!0,e.$store.dispatch("u