master
zhy521521 9 months ago
parent abcd6bae25
commit b6616dc3ed

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

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

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

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

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

Loading…
Cancel
Save