forked from drone/command-center-dashboard

罗广辉
2025-04-19 433d25cc375f679ebace4ec832aa4ffb7e857b4b
feat: 事件跳转后台
5 files modified
13 ■■■■ changed files
.env.development 2 ●●● patch | view | raw | blame | history
.env.production 2 ●●● patch | view | raw | blame | history
.env.test 2 ●●● patch | view | raw | blame | history
src/layout/Header.vue 2 ●●● patch | view | raw | blame | history
src/views/SignMachineNest/MachineRight/MachineStatus/MachineTableDetails/DeviceEvent.vue 5 ●●●●● patch | view | raw | blame | history
.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'
.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'
.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'
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('正在加急开发中...');
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('正在加急开发中...')