master
zhy521521 9 months ago
parent abcd6bae25
commit b6616dc3ed

@ -10,7 +10,7 @@ const routes = [
path: "/", path: "/",
name: "layout", name: "layout",
component: layout, component: layout,
redirect: "/home", redirect: "/login",
children: [ children: [
{ {
path: "home", path: "home",

@ -76,41 +76,42 @@ export default {
// }); // });
// }, // },
login() { login() {
if (!this.ruleForm.username) { this.$router.push({name:'home'})
this.$message.error("请输入用户名"); // if (!this.ruleForm.username) {
return; // this.$message.error("");
} // return;
if (!this.ruleForm.password) { // }
this.$message.error("请输入密码"); // if (!this.ruleForm.password) {
return; // this.$message.error("");
} // return;
if (!this.ruleForm.checkcode) { // }
this.$message.error("请输入验证码"); // if (!this.ruleForm.checkcode) {
return; // this.$message.error("");
} // return;
const param = { // }
username: this.ruleForm.username, // const param = {
password: this.ruleForm.password, // username: this.ruleForm.username,
code: this.ruleForm.checkcode, // password: this.ruleForm.password,
uuid: this.ruleForm.uuid, // code: this.ruleForm.checkcode,
}; // uuid: this.ruleForm.uuid,
this.$store // };
.dispatch("Login", param) // this.$store
.then((res) => { // .dispatch("Login", param)
if (res.code === 200) { // .then((res) => {
sessionStorage.setItem("activeIndex", "1"); // if (res.code === 200) {
this.$router.push({ // sessionStorage.setItem("activeIndex", "1");
path: "/home/compositeIndex", // this.$router.push({
}); // path: "/home/compositeIndex",
} else { // });
this.$message.error(res.msg); // } else {
return; // this.$message.error(res.msg);
} // return;
}) // }
.catch(() => { // })
//this.$message.error(err.msg) // .catch(() => {
this.getCode(); // //this.$message.error(err.msg)
}); // this.getCode();
// });
}, },
handleClick() { }, handleClick() { },
}, },

@ -39,7 +39,7 @@ export default {
top: '20%', top: '20%',
left: '0', left: '0',
right: '17%', right: '17%',
bottom: '3%', bottom: '6%',
containLabel: true containLabel: true
}, },
xAxis: [ xAxis: [
@ -235,7 +235,7 @@ export default {
color: #FFFFFF; color: #FFFFFF;
.smzq-chart { .smzq-chart {
height: 185px; height: 145px;
} }
} }

@ -147,7 +147,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.zlnd-wrap { .zlnd-wrap {
.zlnd-zx { .zlnd-zx {
height: 160px; height: 150px;
} }
} }
</style> </style>

@ -81,7 +81,7 @@ export default {
.zlsource-wrap { .zlsource-wrap {
.zlsource-chart { .zlsource-chart {
height: 140px; height: 130px;
} }
} }

Loading…
Cancel
Save