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.
 
 
 

1 line
4.0 KiB

  1. "use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[2162],{2162:function(t,o,e){e.r(o),e.d(o,{default:function(){return m}});var r=function(){var t=this,o=t._self._c;return o("div",{staticClass:"login-container"},[o("div",{staticClass:"login-background"},[o("div",{staticClass:"login-background-container"},[t._m(0),o("img",{staticStyle:{width:"90%","margin-left":"5%"},attrs:{src:e(6254),alt:""}})])]),o("div",{staticClass:"login-right"},[t._m(1),o("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:t.loginForm,"status-icon":""}},[o("el-form-item",{attrs:{prop:"mobile"}},[o("el-input",{model:{value:t.loginForm.mobile,callback:function(o){t.$set(t.loginForm,"mobile",o)},expression:"loginForm.mobile"}})],1),o("el-form-item",{attrs:{prop:"password"}},[o("el-input",{attrs:{type:"password",autocomplete:"off","show-password":""},model:{value:t.loginForm.password,callback:function(o){t.$set(t.loginForm,"password",o)},expression:"loginForm.password"}})],1),o("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary",loading:t.loading},on:{click:function(o){return t.submitForm("loginForm")}}},[t._v("登录")])],1),t._m(2)],1)])},n=[function(){var t=this,o=t._self._c;return o("div",{staticClass:"back-title"},[t._v(" Wel"),o("span",[t._v("come")]),o("p",[o("span",{staticClass:"back-title-point"}),t._v("G8.5TFT-LCD玻璃基板后工程段制造执行系统 ")])])},function(){var t=this,o=t._self._c;return o("div",{staticClass:"title-container"},[o("h3",{staticClass:"title"},[o("img",{staticClass:"logo",attrs:{src:e(6949)}}),o("span",[t._v("TFT")])])])},function(){var t=this,o=t._self._c;return o("div",{staticClass:"login-footer"},[o("span",[t._v("版权所有:中建材智能自动化研究院有限公司")]),o("span",[t._v("版本:1.0")])])}],i=e(5591),a={name:"LoginPage",data(){return{loginForm:{mobile:"13588441519",password:"123abc."},rules:{mobile:[{required:!0,message:"请输入用户名",trigger:"blur"},{min:3,max:18,message:"长度在 3 到 18 个字符",trigger:"blur"}],passWord:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,max:18,message:"长度在 6 到 18 个字符",trigger:"blur"}]},loading:!1}},methods:{submitForm(t){this.$refs[t].validate((t=>{if(!t)return console.log("error submit!!"),!1;this.loading=!0,this.$store.dispatch("user/login",this.loginForm).then((()=>{this.$store.dispatch("user/getInfo"),(0,i.iv)().then((t=>{if(0===t.code){let o=t.data;for(let t in o)for(let e of o[t])e.dataCode?e.dataCode=Number(e.dataCode):(e.dataCode=Number(e.id),e.dataName=e.name);if(localStorage.setItem("publicList",JSON.stringify(o)),location.href.split("?")[1]){let t=location.href.split("?")[1].split("=");if("redirect"===t[0]){let o=decodeURIComponent(t[1]);this.$router.push({path:o})}else this.$router.push({path:"/home/index"})}else this.$router.push({path:"/home/index"})}}))}))}))}}},s=a,l=e(1001),u=(0,l.Z)(s,r,n,!1,null,"1891ea5e",null),m=u.exports},5591:function(t,o,e){e.d(o,{FH:function(){return s},Hp:function(){return u},JQ:function(){return a},SI:function(){return i},Vx:function(){return m},WQ:function(){return p},b6:function(){return c},iv:function(){return n},jL:function(){return l},m:function(){return d}});var r=e(8859);function n(){return(0,r.Z)({url:"/common/getList",method:"post"})}function i(){return(0,r.Z)({url:"/common/getTreeData",method:"post"})}function a(t){return(0,r.Z)({url:"/common/updateEqSeq",method:"post",data:t})}function s(t){return(0,r.Z)({url:"/common/attachment/downloadFile",method:"get",responseType:"blob",params:t,timeout:6e4})}function l(t){return(0,r.Z)({url:"/common/getFpyData",method:"post",data:t})}function u(t){return(0,r.Z)({url:"/common/getAlarmData",method:"post",data:t})}function m(t){return(0,r.Z)({url:"/common/getCapacityData",method:"post",data:t})}function c(t){return(0,r.Z)({url:"/common/getProductData",method:"post",data:t})}function d(t){return(0,r.Z)({url:"/common/getMaterialData",method:"post",data:t})}const p="/api/common/attachment/uploadFileFormData"},6254:function(t,o,e){t.exports=e.p+"img/login.335fca7c.gif"}}]);