任务
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<gl-map ref="glMap"/>
|
||||
<el-row type="flex" justify="end">
|
||||
<button class="button_control" @click="$router.push('/index/home')"><p>放弃建图</p></button>
|
||||
<button class="button_control" style="margin-left: 10px" :disabled="disabled" @click="_stopMapping"><p>结束建图</p></button>
|
||||
<button class="button_control" style="margin-left: 10px" :disabled="disabled" @click="stopMappingConfirm"><p>结束建图</p></button>
|
||||
</el-row>
|
||||
<el-dialog
|
||||
title="设置站点"
|
||||
@@ -230,6 +230,20 @@ export default {
|
||||
this.disabled = false
|
||||
}
|
||||
},
|
||||
stopMappingConfirm () {
|
||||
this.$confirm('确定是否结束建图?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this._stopMapping()
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '已取消结束建图'
|
||||
})
|
||||
})
|
||||
},
|
||||
// 结束建图
|
||||
async _stopMapping () {
|
||||
this.disabled = true
|
||||
|
||||
Reference in New Issue
Block a user