无人机管理后台前端(已迁走)
chenyao
2025-05-23 74f4d48cc1fb458b15e2a5d9553e40bcda951266
feat:跳转大屏
2 files modified
8 ■■■■■ changed files
.env.development 4 ●●● patch | view | raw | blame | history
src/views/job/components/TaskIntermediateContent/TaskIntermediateContent.vue 4 ●●●● patch | view | raw | blame | history
.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/
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 {