Browse Source

Merge branch 'lixin' of gitadmin/tuoheng_lc_web into develop

tags/v1.2.0
lixin 1 year ago
parent
commit
6d2799c81a
1 changed files with 27 additions and 2 deletions
  1. +27
    -2
      src/views/dashboard/components/WarningDrawer.vue

+ 27
- 2
src/views/dashboard/components/WarningDrawer.vue View File

clearInterval(data.liveTimer) clearInterval(data.liveTimer)
data.liveTimer = null data.liveTimer = null
} else { } else {
handleDrawerColse()
$dialog.confirm(
{
type: 'error',
title: '错误',
showIcon: false,
content: `飞行任务失败`,
positiveText: '返回',
// 是否在摁下 Esc 键的时候关闭对话框
closeOnEsc: false,
// 是否可以通过点击 mask 关闭对话框
maskClosable: false,
// 不填对应的按钮不会出现
negativeText: null,
confirm: () => {
handleDrawerColse()
}
}
)
} }
} }
}, 3 * 60 * 1000)
}, 2 * 60 * 1000)
} }
}) })


'msg': '飞行任务' 'msg': '飞行任务'
} }
}) })

// 继续飞行关闭手动控制
data.control = '手动控制'
data.showControl = false
} }
} }


const handleControl = () => { const handleControl = () => {
if (data.control === '手动控制') {
stopOrGo('悬停')
data.operate = '继续飞行'
}
data.control = data.control === '手动控制' ? '关闭控制' : '手动控制' data.control = data.control === '手动控制' ? '关闭控制' : '手动控制'
data.showControl = !data.showControl data.showControl = !data.showControl
} }

Loading…
Cancel
Save