From bbbc478129f72b26e2ec4a2e981ed8698a96880c Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 22 十月 2026 00:28:18 +0800
Subject: [PATCH] 当service_type=6时,需要根据传入的入院还是离院病区(病区)去后端查询
---
src/views/login.vue | 26 ++++++++++++++++++++++----
1 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/src/views/login.vue b/src/views/login.vue
index ae3f1a4..c166a26 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -155,6 +155,7 @@
immediate: true,
},
},
+
created() {
this.getorganization();
this.getCode();
@@ -162,6 +163,12 @@
// if (localStorage.getItem('orgid')) {
// this.loginForm.orgid = localStorage.getItem('orgid');
// }
+ },
+ computed: {
+ isAdmin() {
+ const roles = this.$store.getters.roles || [];
+ return roles.includes("mydstaff");
+ }
},
methods: {
getCode() {
@@ -249,13 +256,23 @@
.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();
@@ -264,6 +281,7 @@
}
});
},
+
},
};
</script>
@@ -333,7 +351,7 @@
width: 100%;
text-align: center;
font-size: 13px;
- color: #3664D9;
+ color: #3664d9;
z-index: 10;
}
@@ -361,18 +379,18 @@
.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;
--
Gitblit v1.9.3