| | |
| | | <validCode |
| | | v-model="validCode" |
| | | ref="refresh" |
| | | style="margin-left:16px" |
| | | @sendData="getCode" |
| | | ></validCode> |
| | | </el-col> |
| | |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | class="nobr" |
| | | style=" |
| | | width: 384px; |
| | | height: 50px; |
| | | background: #3b4d6e; |
| | | border-radius: 5px; |
| | | " |
| | | class="nobr loginbtn" |
| | | style="" |
| | | :loading="loading" |
| | | @click="submitForm('loginForm')" |
| | | >登录</el-button> |
| | |
| | | .then((response) => { |
| | | if (response.code != 200) { |
| | | this.loading = false; |
| | | Message({ |
| | | this.$message({ |
| | | message: response.msg, |
| | | type: "error", |
| | | duration: 5 * 1000, |
| | | }); |
| | | // Message({ |
| | | // message: response.msg, |
| | | // type: "error", |
| | | // duration: 5 * 1000, |
| | | // }); |
| | | return; |
| | | } |
| | | |
| | |
| | | sessionStorage.setItem("routerName", "/Thematic"); |
| | | sessionStorage.setItem("changeSelectStyle", 1); |
| | | this.$router.push("/"); |
| | | } else { |
| | | this.$message({ |
| | | message: "请您联系管理员分配角色菜单", |
| | | type: "error", |
| | | }); |
| | | } |
| | | this.loading = false; |
| | | } else { |
| | |
| | | time: timeData, |
| | | userid: res.result.createUser, |
| | | expire: res.result.expire, |
| | | autoLogOut: res.result.autoLogOut, |
| | | }; |
| | | LfPrems = JSON.stringify(LfPrems); |
| | | localStorage.setItem("LFToken", LfPrems); |
| | |
| | | } |
| | | .title_img { |
| | | position: absolute; |
| | | left: 17%; |
| | | left: 20%; |
| | | top: 8%; |
| | | width: 20%; |
| | | /* transform: translateX(-50%); */ |
| | |
| | | border: 0; |
| | | padding: 0 !important; |
| | | } |
| | | .loginbtn { |
| | | width: 384px; |
| | | height: 50px; |
| | | background: #3b4d6e; |
| | | border-radius: 5px; |
| | | } |
| | | </style> |