From aa1e9c86e53a687a8b991fa7c5d2aa85fef34646 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Mon, 21 Apr 2025 14:50:09 +0800
Subject: [PATCH] feat: 更换logo

---
 src/components/DeviceJobDetails/JobRelatedEvents.vue |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/src/components/DeviceJobDetails/JobRelatedEvents.vue b/src/components/DeviceJobDetails/JobRelatedEvents.vue
index 5384cec..ef28ccd 100644
--- a/src/components/DeviceJobDetails/JobRelatedEvents.vue
+++ b/src/components/DeviceJobDetails/JobRelatedEvents.vue
@@ -10,7 +10,7 @@
 		>
 			<el-table-column prop="id" label="事件编号" />
 			<el-table-column show-overflow-tooltip prop="event_name" label="事件名称" />
-			<el-table-column show-overflow-tooltip prop="create_user" label="所属单位" />
+			<el-table-column show-overflow-tooltip prop="dept_name" label="所属单位" />
 			<el-table-column show-overflow-tooltip prop="remark" label="事件内容" />
 			<el-table-column show-overflow-tooltip prop="ai_types" label="关联算法" />
 			<el-table-column prop="status" label="工单状态">
@@ -48,7 +48,7 @@
 
 const list = ref()
 const params = ref({
-	wayLineJodInfoId: null,
+	way_line_jod_info_id: null,
 })
 const sizeParams = ref({
 	current: 1,
@@ -59,17 +59,15 @@
 const total = ref(10)
 const examine = row => {
 	const orderNumber = row.event_num
-	const primaryUrl = `${import.meta.env.VITE_APP_TICKET_BASE_URL}/manage/tickets/ticket?orderNumber=${orderNumber}`
-	const backupUrl = `${import.meta.env.VITE_APP_TICKET_BACKUP_URL}/manage/tickets/ticket?orderNumber=${orderNumber}`
-	const win = window.open(primaryUrl, '_blank')
-	if (!win || win.closed) {
-		window.open(backupUrl, '_blank')
-	}
+	const adminUrl = import.meta.env.VITE_APP_ADMIN_URL
+	const targetPath = `/tickets/ticket?orderNumber=${orderNumber}`;
+	window.open(`${adminUrl}?redirect=${encodeURIComponent(targetPath)}`, '_blank');
 }
 const wayLineJodInfoId = inject('wayLineJodInfoId')
 
 const getList = () => {
-	params.value.wayLineJodInfoId = wayLineJodInfoId.value
+	params.value.way_line_jod_info_id = wayLineJodInfoId.value
+
 	getDeviceEventList(params.value, sizeParams.value).then(res => {
 		const resData = res?.data?.data || {}
 		list.value = resData.records

--
Gitblit v1.9.3