diff --git a/src/router/index.js b/src/router/index.js index 18776b4..080892b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,7 +10,7 @@ const routes = [ path: "/", name: "layout", component: layout, - redirect: "/home", + redirect: "/login", children: [ { path: "home", diff --git a/src/views/login/index.vue b/src/views/login/index.vue index c09881e..74604ee 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -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() { }, }, diff --git a/src/views/zygk/components/smzq.vue b/src/views/zygk/components/smzq.vue index db62185..7600308 100644 --- a/src/views/zygk/components/smzq.vue +++ b/src/views/zygk/components/smzq.vue @@ -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; } } diff --git a/src/views/zygk/components/zlnd.vue b/src/views/zygk/components/zlnd.vue index 8b2760e..e167314 100644 --- a/src/views/zygk/components/zlnd.vue +++ b/src/views/zygk/components/zlnd.vue @@ -147,7 +147,7 @@ export default { \ No newline at end of file diff --git a/src/views/zygk/components/zlsource.vue b/src/views/zygk/components/zlsource.vue index 492812f..82c6895 100644 --- a/src/views/zygk/components/zlsource.vue +++ b/src/views/zygk/components/zlsource.vue @@ -81,7 +81,7 @@ export default { .zlsource-wrap { .zlsource-chart { - height: 140px; + height: 130px; } }