From 7a3bba9960237ef9b9714ff3fa7a4f9499601443 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 09 九月 2025 14:25:19 +0800
Subject: [PATCH] 测试完成
---
src/views/login.vue | 26 +++++++++++++++++---------
1 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/src/views/login.vue b/src/views/login.vue
index 81a3a84..af19ec6 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -6,7 +6,7 @@
:rules="loginRules"
class="login-form"
>
- <h3 class="title">鏅畞浜烘皯鍖婚櫌鏅烘収闅忚骞冲彴</h3>
+ <h3 class="title">鏅烘収闅忚绯荤粺</h3>
<el-form-item prop="username">
<el-input
v-model="loginForm.username"
@@ -112,12 +112,17 @@
password: "",
rememberMe: false,
code: "",
- orgid:'1',
+ orgid:'30001002',
},
options: [
- { value: "1", label: "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�" },
- { value: "2", label: "涓芥按甯備腑鍖婚櫌" },
- ],
+ { value: "30001002", label: "娴欐睙鐪佺珛鍚屽痉鍖婚櫌缈犺嫅闄㈠尯" },
+ { value: "30001003", label: "娴欐睙鐪佺珛鍚屽痉鍖婚櫌涔嬫睙闄㈠尯" },
+ { value: "30001004", label: "娴欐睙鐪佺珛鍚屽痉鍖婚櫌闂叉灄闄㈠尯" },
+ { value: "30001005", label: "娴欐睙鐪佺珛鍚屽痉鍖婚櫌澶╃洰灞辫矾闄㈠尯" },
+ { value: "30001006", label: "娴欐睙鐪佺珛鍚屽痉鍖婚櫌闈掑北婀栭櫌鍖�" },
+ { value: "30001007", label: "娴嬭瘯闄㈠尯" }
+],
+
loginRules: {
username: [
{ required: true, trigger: "blur", message: "璇疯緭鍏ユ偍鐨勮处鍙�" },
@@ -190,12 +195,15 @@
Cookies.remove("password");
Cookies.remove("rememberMe");
}
- this.loginForm.orgid = '1',
+ // 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;
--
Gitblit v1.9.3