Sfoglia il codice sorgente

Merge branch 'lixin' of gitadmin/tuoheng_lc_web into develop

tags/v1.2.0
lixin 1 anno fa
parent
commit
6d2799c81a
1 ha cambiato i file con 27 aggiunte e 2 eliminazioni
  1. +27
    -2
      src/views/dashboard/components/WarningDrawer.vue

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

@@ -218,10 +218,27 @@ export default defineComponent({
clearInterval(data.liveTimer)
data.liveTimer = null
} 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)
}
})

@@ -276,10 +293,18 @@ export default defineComponent({
'msg': '飞行任务'
}
})

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

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

Loading…
Annulla
Salva