You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
4.8 KiB
2 lines
4.8 KiB
6 years ago
|
webpackJsonp([40],{221:function(t,e,o){"use strict";e.__esModule=!0;var s=n(o(36)),i=n(o(30));function n(t){return t&&t.__esModule?t:{default:t}}e.default={name:"login-model",data:function(){return{spinnerLoading:!1,userName:"",userPassword:"",isUserName:!1,isUserPassword:!1,userNameText:"",userPasswordText:""}},props:{},methods:{_ok:function(){var t=this;this._verification()&&(this.spinnerLoading=!0,this._gLogin().then(function(e){setTimeout(function(){t.spinnerLoading=!1,"admin"===t.userName?window.location.href="/#/security/tenant":window.location.href="/#/home"},1e3)}).catch(function(e){t.userPasswordText=e.msg,t.isUserPassword=!0,t.spinnerLoading=!1}))},_verification:function(){var t=!0;return this.userName||(this.userNameText=""+s.default.$t("请输入用户名"),this.isUserName=!0,t=!1),this.userPassword||(this.userPasswordText=""+s.default.$t("请输入密码"),this.isUserPassword=!0,t=!1),t},_gLogin:function(){var t=this;return new Promise(function(e,o){i.default.post("login",{userName:t.userName,userPassword:t.userPassword},function(t){e(t)}).catch(function(t){o(t)})})}},watch:{userName:function(){this.isUserName=!1},userPassword:function(){this.isUserPassword=!1}},created:function(){},mounted:function(){}}},28:function(t,e){t.exports=_},29:function(t,e){t.exports=Vue},590:function(t,e,o){"use strict";var s=l(o(71)),i=l(o(29)),n=l(o(591)),r=l(o(36));o(219);var a=l(o(220));function l(t){return t&&t.__esModule?t:{default:t}}o(596),i.default.use(a.default),i.default.config.devtools=!0,i.default.config.productionTip=!0,i.default.config.silent=!0,new i.default({el:"#app",render:function(t){return t(n.default)},mounted:function(){},methods:{initApp:function(){var t=s.default.fn.tooltip.noConflict();s.default.fn.tooltip=t,(0,s.default)("body").tooltip({selector:'[data-toggle="tooltip"]',trigger:"hover"}),r.default.init()}},created:function(){this.initApp()}})},591:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=o(221),i=o.n(s);for(var n in s)"default"!==n&&function(t){o.d(e,t,function(){return s[t]})}(n);var r=o(595);var a=function(t){o(592)},l=o(27)(i.a,r.a,!1,a,null,null);e.default=l.exports},592:function(t,e,o){var s=o(593);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);o(35)("57da4932",s,!0,{})},593:function(t,e,o){var s=o(124);(t.exports=o(34)(!1)).push([t.i,".login-model{width:400px;min-height:260px;background:#fff;border-radius:3px;position:fixed;left:50%;top:50%;margin-left:-200px;margin-top:-200px;z-index:1;box-shadow:0 2px 25px 0 rgba(0,0,0,.3)}.login-model .text-1{padding-top:30px;margin-bottom:-6px}.login-model .text-1 a{width:280px;height:60px;display:block;background:url("+s(o(594))+");margin:0 auto}.login-model .from-model{padding:30px 20px}.login-model .from-model .list{margin-bottom:24px}.login-model .from-model .list>label{font-size:14px;display:block;height:24px;line-height:24px;font-weight:400;color:#333}.login-model .from-model .list>.error{font-size:12px;color:red;padding-top:6px}.login-model .from-model .list:last-child{margin-bottom:6px}.login-model .ctr{width:400px;text-align:center;position:absolute;left:0;bottom:-80px;color:#fff}",""])},594:function(t,e,o){t.exports=o.p+"images/login-logo.png?ddbe8d0df16b034ed1d2e2142c4c4233"},595:function(t,e,o){"use strict";var s={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"login-model"},[t._m(0),t._v(" "),o("div",{staticClass:"from-model"},[o("div",{staticClass:"list"},[o("label",[t._v(t._s(t.$t("用户名")))]),t._v(" "),o("div",[o("x-input",{attrs:{size:"large",type:"text",placeholder:t.$t("请输入用户名"),maxlength:"20"},on:{"on-enterkey":t._ok},model:{value:t.userName,callback:function(e){t.userName=e},expression:"userName"}})],1),t._v(" "),t.isUserPassword?o("p",{staticClass:"error"},[t._v("\n "+t._s(t.userNameText)+"\n ")]):t._e()]),t._v(" "),o("div",{staticClass:"list"},[o("label",[t._v(t._s(t.$t("密码")))]),t._v(" "),o("div",[o("x-input",{attrs:{type:"password",size:"large",placeholder:t.$t("请输入密码"),maxlength:"20"
|
||
|
//# sourceMappingURL=index.94dfa26.js.map
|