From a9d2b856e0f6be6475319c2dc36bf405c2f908fc Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 22 九月 2026 14:04:52 +0800
Subject: [PATCH] 测试完成
---
src/views/loginSSO.vue | 49 +++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 43 insertions(+), 6 deletions(-)
diff --git a/src/views/loginSSO.vue b/src/views/loginSSO.vue
index e43a341..73f24c1 100644
--- a/src/views/loginSSO.vue
+++ b/src/views/loginSSO.vue
@@ -149,8 +149,22 @@
// 3. 娓呯悊鏃х郴缁熸暟鎹�
this.clearOldSystemData();
- const { token, orgid, orgname, ZuHuID, deptCode, redirect, campusid } =
- params;
+ const {
+ token,
+ orgid,
+ orgname,
+ ZuHuID,
+ deptCode,
+ redirect,
+ campusid,
+ taskid,
+ patid,
+ id,
+ Voicetype,
+ visitCount,
+ followUpDeptCode,
+ followUpWardCode,
+ } = params;
console.log(
token,
orgid,
@@ -159,6 +173,8 @@
deptCode,
redirect,
campusid,
+ followUpDeptCode,
+ followUpWardCode,
"鍙傛暟鏃ュ織"
);
@@ -204,9 +220,29 @@
// 7. 澶勭悊閲嶅畾鍚戣矾寰�
let redirectPath = "/followvisit/discharge";
+ let redirectQuery = {};
- if (redirect) {
- // 瑙g爜浼犲叆鐨勯噸瀹氬悜璺緞
+ // 7.1 濡傛灉瀛樺湪 taskid锛屼紭鍏堣烦杞埌璇︽儏椤靛苟甯︿笂鍙傛暟
+ if (taskid) {
+ redirectPath = "/followvisit/record/detailpage";
+ redirectQuery = {
+ taskid: taskid,
+ patid: patid || "",
+ id: id || "",
+ Voicetype: Voicetype || "",
+ visitCount: visitCount || "",
+ };
+ console.log("浣跨敤taskid璺宠浆鍒拌鎯呴〉:", redirectPath, redirectQuery);
+ } else if (followUpDeptCode || followUpWardCode) {
+ // 7.2 鎼哄甫绉戝/鐥呭尯缂栫爜锛岃烦杞埌鍑洪櫌闅忚鍒楄〃骞舵寜绉戝/鐥呭尯鏌ヨ
+ redirectPath = "/followvisit/discharge";
+ redirectQuery = {
+ followUpDeptCode: followUpDeptCode || "",
+ followUpWardCode: followUpWardCode || "",
+ };
+ console.log("浣跨敤绉戝/鐥呭尯缂栫爜璺宠浆鍒板嚭闄㈤殢璁垮垪琛�:", redirectPath, redirectQuery);
+ } else if (redirect) {
+ // 7.3 濡傛灉浼犲叆鐨剅edirect瀛樺湪锛屼娇鐢ㄤ紶鍏ョ殑閲嶅畾鍚戣矾寰�
try {
redirectPath = decodeURIComponent(redirect);
console.log("浣跨敤浼犲叆鐨勯噸瀹氬悜璺緞:", redirectPath);
@@ -215,6 +251,7 @@
redirectPath = this.getDefaultRedirectPath();
}
} else {
+ // 7.4 浣跨敤榛樿璺緞
redirectPath = this.getDefaultRedirectPath();
}
@@ -224,11 +261,11 @@
// 9. 寤惰繜璺宠浆锛岀‘淇濈姸鎬佸凡鏇存柊
setTimeout(() => {
this.loadingDetail = "璺宠浆鍒扮洰鏍囬〉闈�...";
- console.log("鍑嗗璺宠浆鍒�:", redirectPath);
+ console.log("鍑嗗璺宠浆鍒�:", redirectPath, "鍙傛暟:", redirectQuery);
// 鉁� 浣跨敤 push 鑰屼笉鏄� replace锛屼繚鐣欏巻鍙茶褰�
this.$router
- .push({ path: redirectPath })
+ .push({ path: redirectPath, query: redirectQuery })
.then(() => {
console.log("SSO鐧诲綍鎴愬姛锛岃烦杞畬鎴�");
})
--
Gitblit v1.9.3