From 74f4d48cc1fb458b15e2a5d9553e40bcda951266 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 23 May 2025 15:56:51 +0800
Subject: [PATCH] feat:跳转大屏
---
.env.development | 4 +---
src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue | 4 ++--
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/.env.development b/.env.development
index 124a6e4..29222e9 100644
--- a/.env.development
+++ b/.env.development
@@ -7,7 +7,7 @@
VITE_APP_API=/api
#页面基础路径
-VITE_APP_BASE=/drone-web-manage/
+VITE_APP_BASE=/manage
# 服务地址
VITE_APP_URL = https://wrj.shuixiongit.com/api
@@ -27,8 +27,6 @@
# 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip
-
-VITE_APP_BIGSCREEN_URL = 'https://wrj.shuixiongit.com/command-center-dashboard/'
#页面基础路径
# VITE_APP_BASE_COMMAND = /drone-web-manage/
diff --git a/src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue b/src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue
index 3d924d4..9d710ff 100644
--- a/src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue
+++ b/src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue
@@ -168,9 +168,9 @@
if (row.device_sns.length !== 1) return ElMessage.success('即将跳转到集群调度')
rowData.value = row ? row : {}
if (row.status === 2 || row.status === 1) {
- isShowCurrentTaskDetails.value = true
+ // isShowCurrentTaskDetails.value = true
// 跳转大屏当前任务详情
- const adminUrl = import.meta.env.VITE_APP_BIGSCREEN_URL
+ const adminUrl = `${import.meta.env.VITE_APP_AREA_NAME}/command-center-dashboard/`
const targetPath = `/taskManage?id=${item.id}&batchNo=${item.batch_no}`
window.open(`${adminUrl}?redirect=${encodeURIComponent(targetPath)}`, '_blank')
} else {
--
Gitblit v1.9.3