From 433d25cc375f679ebace4ec832aa4ffb7e857b4b Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 19 Apr 2025 22:18:35 +0800
Subject: [PATCH] feat: 事件跳转后台

---
 src/layout/Header.vue                                                                    |    2 +-
 src/views/SignMachineNest/MachineRight/MachineStatus/MachineTableDetails/DeviceEvent.vue |    5 +++--
 .env.development                                                                         |    2 +-
 .env.production                                                                          |    2 +-
 .env.test                                                                                |    2 +-
 5 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/.env.development b/.env.development
index c1b7c39..d188b0a 100644
--- a/.env.development
+++ b/.env.development
@@ -12,4 +12,4 @@
 VITE_APP_AIRLINE_URL = https://wrj.shuixiongit.com/minio/cloud-bucket
 
 #系统运维
-VITE_APP_ADMIN_URL = 'https://wrj.shuixiongit.com/manage'
+VITE_APP_ADMIN_URL = 'https://wrj.shuixiongit.com/manage/wel/index'
diff --git a/.env.production b/.env.production
index 4e96c25..1ea534b 100644
--- a/.env.production
+++ b/.env.production
@@ -6,4 +6,4 @@
 # ws地址
 VITE_APP_WS_API_URL = wss://wrj.shuixiongit.com/drone-wss/api/v1/ws
 # 管理后台地址
-VITE_APP_ADMIN_URL = 'https://aisky.org.cn/manage'
+VITE_APP_ADMIN_URL = 'https://aisky.org.cn/manage/wel/index'
diff --git a/.env.test b/.env.test
index 1518c99..519d7bf 100644
--- a/.env.test
+++ b/.env.test
@@ -7,4 +7,4 @@
 VITE_APP_AIRLINE_URL = https://wrj.shuixiongit.com/minio/cloud-bucket
 
 #系统运维
-VITE_APP_ADMIN_URL = 'https://wrj.shuixiongit.com/manage'
+VITE_APP_ADMIN_URL = 'https://wrj.shuixiongit.com/manage/wel/index'
diff --git a/src/layout/Header.vue b/src/layout/Header.vue
index f83059f..fad0241 100644
--- a/src/layout/Header.vue
+++ b/src/layout/Header.vue
@@ -52,7 +52,7 @@
 
 const handleClick = ({ path, name }) => {
   if (['系统运维'].includes(name)) {
-    window.open(import.meta.env.VITE_APP_ADMIN_URL + '/wel/index', '_blank');
+    window.open(import.meta.env.VITE_APP_ADMIN_URL, '_blank');
     return;
   }
   if (!['首页', '任务管理'].includes(name)) return ElMessage.warning('正在加急开发中...');
diff --git a/src/views/SignMachineNest/MachineRight/MachineStatus/MachineTableDetails/DeviceEvent.vue b/src/views/SignMachineNest/MachineRight/MachineStatus/MachineTableDetails/DeviceEvent.vue
index 51bbc54..934d9d2 100644
--- a/src/views/SignMachineNest/MachineRight/MachineStatus/MachineTableDetails/DeviceEvent.vue
+++ b/src/views/SignMachineNest/MachineRight/MachineStatus/MachineTableDetails/DeviceEvent.vue
@@ -70,9 +70,10 @@
 const total = ref(0)
 
 const distribution = row => {
-	let saberTokenObj = localStorage.getItem('saber-token')
 	const orderNumber = row.event_num
-	window.open(import.meta.env.VITE_APP_ADMIN_URL + `/tickets/ticket?orderNumber=${orderNumber}`, '_blank');
+	const adminUrl = import.meta.env.VITE_APP_ADMIN_URL
+	const targetPath = `/tickets/ticket?orderNumber=${orderNumber}`;
+	window.open(`${adminUrl}?redirect=${encodeURIComponent(targetPath)}`, '_blank');
 }
 const examine = row => {
 	ElMessage.warning('正在加急开发中...')

--
Gitblit v1.9.3