From 5df476ae693d7577c7a0031ae12c67558b9832a7 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期六, 12 九月 2026 10:48:10 +0800
Subject: [PATCH] 测试完成
---
src/views/loginSSO.vue | 37 +++++++++++++++++++++++++++++++------
1 files changed, 31 insertions(+), 6 deletions(-)
diff --git a/src/views/loginSSO.vue b/src/views/loginSSO.vue
index e43a341..b11fb85 100644
--- a/src/views/loginSSO.vue
+++ b/src/views/loginSSO.vue
@@ -149,8 +149,20 @@
// 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,
+ } = params;
console.log(
token,
orgid,
@@ -204,9 +216,21 @@
// 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 (redirect) {
+ // 7.2 濡傛灉浼犲叆鐨剅edirect瀛樺湪锛屼娇鐢ㄤ紶鍏ョ殑閲嶅畾鍚戣矾寰�
try {
redirectPath = decodeURIComponent(redirect);
console.log("浣跨敤浼犲叆鐨勯噸瀹氬悜璺緞:", redirectPath);
@@ -215,6 +239,7 @@
redirectPath = this.getDefaultRedirectPath();
}
} else {
+ // 7.3 浣跨敤榛樿璺緞
redirectPath = this.getDefaultRedirectPath();
}
@@ -224,11 +249,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