CancelConfirm.vue
638 Bytes
<template>
<div class="cancel-confirm">
<a-alert
message="确认要取消当前AGV任务吗?"
type="warning"
show-icon
style="margin-bottom: 20px"
/>
<div style="text-align: center">
<a-button type="primary" @click="handleConfirm" style="margin-right: 20px">
确认取消
</a-button>
<a-button @click="handleCancel">
返回
</a-button>
</div>
</div>
</template>
<script>
export default {
name: 'CancelConfirm',
methods: {
handleConfirm() {
this.$emit('cancel')
},
handleCancel() {
this.$emit('cancel')
}
}
}
</script>