| | |
| | | :rules="loginRules" |
| | | class="login-form" |
| | | > |
| | | <h3 class="title">景宁人民医院智慧随访平台</h3> |
| | | <h3 class="title">智慧随访系统</h3> |
| | | <el-form-item prop="username"> |
| | | <el-input |
| | | v-model="loginForm.username" |
| | |
| | | password: "", |
| | | rememberMe: false, |
| | | code: "", |
| | | orgid:'47255004333112711A1001', |
| | | orgid:'H41010500003', |
| | | }, |
| | | options: [ |
| | | { value: "47255004333112711A1001", label: "景宁畲族自治县人民医院" }, |
| | | { value: "2", label: "丽水市中医院" }, |
| | | { value: "H41010500003", label: "河南中医药大学第一附属医院" }, |
| | | { value: "H41082200269", label: "博爱县人民医院" }, |
| | | { value: "H41078202417", label: "辉县市中医院" } |
| | | ], |
| | | loginRules: { |
| | | username: [ |
| | |
| | | // this.loginForm.orgid = '1', |
| | | this.$store |
| | | .dispatch("Login", this.loginForm) |
| | | .then(() => { |
| | | // this.$router.push({ path: this.redirect || "/" }).catch(() => {}); |
| | | this.$router.push({ path:"/patient/patient" }).catch(() => {}); |
| | | .then((res) => { |
| | | if (this.loginForm.username=='admin') { |
| | | this.$router.push({ path:"/index" }).catch(() => {}); |
| | | }else{ |
| | | this.$router.push({ path:"/followvisit/discharge" }).catch(() => {}); |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | this.loading = false; |