| | |
| | | immediate: true, |
| | | }, |
| | | }, |
| | | |
| | | created() { |
| | | this.getorganization(); |
| | | this.getCode(); |
| | |
| | | // if (localStorage.getItem('orgid')) { |
| | | // this.loginForm.orgid = localStorage.getItem('orgid'); |
| | | // } |
| | | }, |
| | | computed: { |
| | | isAdmin() { |
| | | const roles = this.$store.getters.roles || []; |
| | | return roles.includes("mydstaff"); |
| | | } |
| | | }, |
| | | methods: { |
| | | getCode() { |
| | |
| | | .then((res) => { |
| | | if (this.loginForm.username == "admin") { |
| | | this.$router.push({ path: "/index" }).catch(() => {}); |
| | | } else if (this.isAdmin) { |
| | | console.log(1); |
| | | |
| | | this.$router |
| | | .push({ path: "/Intelligentcenter/dispose" }) |
| | | .catch(() => {}); |
| | | } else { |
| | | console.log(2); |
| | | |
| | | this.$router |
| | | .push({ path: "/followvisit/discharge" }) |
| | | .catch(() => {}); |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | console.log(3); |
| | | |
| | | this.loading = false; |
| | | if (this.captchaEnabled) { |
| | | this.getCode(); |
| | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | width: 100%; |
| | | text-align: center; |
| | | font-size: 13px; |
| | | color: #3664D9; |
| | | color: #3664d9; |
| | | z-index: 10; |
| | | } |
| | | |
| | |
| | | .tech-label, |
| | | .tech-name, |
| | | .hotline { |
| | | color: #3664D9;; |
| | | color: #3664d9; |
| | | font-size: 13px; |
| | | } |
| | | |
| | | .tech-name { |
| | | color: #3664D9;; |
| | | color: #3664d9; |
| | | font-weight: 500; |
| | | } |
| | | |
| | | .hotline { |
| | | font-size: 12px; |
| | | color: #3664D9;; |
| | | color: #3664d9; |
| | | } |
| | | .login-code-img { |
| | | height: 38px; |