|
@@ -107,9 +107,10 @@
|
|
|
<div v-if="emergencyStopEnabled" style="padding: 16px; border-top: 1px solid #f0f0f0;">
|
|
<div v-if="emergencyStopEnabled" style="padding: 16px; border-top: 1px solid #f0f0f0;">
|
|
|
<el-button
|
|
<el-button
|
|
|
type="success"
|
|
type="success"
|
|
|
|
|
+ native-type="button"
|
|
|
size="small"
|
|
size="small"
|
|
|
icon="el-icon-refresh-right"
|
|
icon="el-icon-refresh-right"
|
|
|
- @click="$emit('emergency-stop-release')"
|
|
|
|
|
|
|
+ @click.prevent="$emit('emergency-stop-release')"
|
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
|
block
|
|
block
|
|
|
>
|
|
>
|
|
@@ -140,8 +141,9 @@
|
|
|
<div style="padding: 16px; border-top: 1px solid #f0f0f0;">
|
|
<div style="padding: 16px; border-top: 1px solid #f0f0f0;">
|
|
|
<el-button
|
|
<el-button
|
|
|
size="small"
|
|
size="small"
|
|
|
|
|
+ native-type="button"
|
|
|
icon="el-icon-circle-plus-outline"
|
|
icon="el-icon-circle-plus-outline"
|
|
|
- @click="$emit('add-current-point')"
|
|
|
|
|
|
|
+ @click.prevent="$emit('add-current-point')"
|
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
|
block
|
|
block
|
|
|
>
|
|
>
|
|
@@ -193,13 +195,13 @@
|
|
|
<div class="element-name">{{ element.name || '未命名' }}</div>
|
|
<div class="element-name">{{ element.name || '未命名' }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="element-actions">
|
|
<div class="element-actions">
|
|
|
- <el-button size="mini" type="text" @click.stop="$emit('element-edit', element)">编辑</el-button>
|
|
|
|
|
- <el-button size="mini" type="text" @click.stop="$emit('element-locate', element)">定位</el-button>
|
|
|
|
|
|
|
+ <el-button size="mini" type="text" native-type="button" @click.stop.prevent="$emit('element-edit', element)">编辑</el-button>
|
|
|
|
|
+ <el-button size="mini" type="text" native-type="button" @click.stop.prevent="$emit('element-locate', element)">定位</el-button>
|
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
|
title="确定删除这个元素吗?"
|
|
title="确定删除这个元素吗?"
|
|
|
@confirm="$emit('element-remove', element)"
|
|
@confirm="$emit('element-remove', element)"
|
|
|
>
|
|
>
|
|
|
- <el-button size="mini" type="text" slot="reference" @click.stop>删除</el-button>
|
|
|
|
|
|
|
+ <el-button size="mini" type="text" native-type="button" slot="reference" @click.stop.prevent>删除</el-button>
|
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -302,9 +304,10 @@
|
|
|
v-if="mode === 'edit'"
|
|
v-if="mode === 'edit'"
|
|
|
class="edit-panel-close-btn"
|
|
class="edit-panel-close-btn"
|
|
|
type="text"
|
|
type="text"
|
|
|
|
|
+ native-type="button"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
icon="el-icon-arrow-right"
|
|
icon="el-icon-arrow-right"
|
|
|
- @click="$emit('input', false)"
|
|
|
|
|
|
|
+ @click.prevent="$emit('input', false)"
|
|
|
title="收起面板"
|
|
title="收起面板"
|
|
|
/>
|
|
/>
|
|
|
</template>
|
|
</template>
|
|
@@ -588,34 +591,35 @@
|
|
|
<!-- 2行3列网格布局 -->
|
|
<!-- 2行3列网格布局 -->
|
|
|
<div class="toolbar-grid">
|
|
<div class="toolbar-grid">
|
|
|
<!-- 第一行:上移、下移、批量删除 -->
|
|
<!-- 第一行:上移、下移、批量删除 -->
|
|
|
- <el-button type="primary" size="small" :disabled="waypointSingle" @click="$emit('wp-move-up')" class="grid-btn">
|
|
|
|
|
|
|
+ <el-button type="primary" native-type="button" size="small" :disabled="waypointSingle" @click.prevent="$emit('wp-move-up')" class="grid-btn">
|
|
|
<i class="el-icon-arrow-up"></i>
|
|
<i class="el-icon-arrow-up"></i>
|
|
|
<span>上移</span>
|
|
<span>上移</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- <el-button type="primary" size="small" :disabled="waypointSingle" @click="$emit('wp-move-down')" class="grid-btn">
|
|
|
|
|
|
|
+ <el-button type="primary" native-type="button" size="small" :disabled="waypointSingle" @click.prevent="$emit('wp-move-down')" class="grid-btn">
|
|
|
<i class="el-icon-arrow-down"></i>
|
|
<i class="el-icon-arrow-down"></i>
|
|
|
<span>下移</span>
|
|
<span>下移</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-popconfirm title="确定批量删除选中的目标点?" @confirm="$emit('wp-batch-remove')">
|
|
<el-popconfirm title="确定批量删除选中的目标点?" @confirm="$emit('wp-batch-remove')">
|
|
|
- <el-button type="danger" size="small" :disabled="waypointMultiple" slot="reference" class="grid-btn">
|
|
|
|
|
|
|
+ <el-button type="danger" native-type="button" size="small" :disabled="waypointMultiple" slot="reference" class="grid-btn">
|
|
|
<i class="el-icon-delete"></i>
|
|
<i class="el-icon-delete"></i>
|
|
|
<span>批量删除</span>
|
|
<span>批量删除</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
|
|
|
|
|
|
<!-- 第二行:立即前往、生成任务、地图选点 -->
|
|
<!-- 第二行:立即前往、生成任务、地图选点 -->
|
|
|
- <el-button type="warning" size="small" :disabled="waypointSingle" @click="$emit('wp-goto')" class="grid-btn">
|
|
|
|
|
|
|
+ <el-button type="warning" native-type="button" size="small" :disabled="waypointSingle" @click.prevent="$emit('wp-goto')" class="grid-btn">
|
|
|
<i class="el-icon-position"></i>
|
|
<i class="el-icon-position"></i>
|
|
|
<span>立即前往</span>
|
|
<span>立即前往</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- <el-button type="success" size="small" :disabled="waypointMultiple" @click="$emit('wp-create-task')" class="grid-btn">
|
|
|
|
|
|
|
+ <el-button type="success" native-type="button" size="small" :disabled="waypointMultiple" @click.prevent="$emit('wp-create-task')" class="grid-btn">
|
|
|
<i class="el-icon-plus"></i>
|
|
<i class="el-icon-plus"></i>
|
|
|
<span>生成任务</span>
|
|
<span>生成任务</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
:type="mapSelectMode ? 'danger' : 'info'"
|
|
:type="mapSelectMode ? 'danger' : 'info'"
|
|
|
|
|
+ native-type="button"
|
|
|
size="small"
|
|
size="small"
|
|
|
- @click="toggleMapSelectMode"
|
|
|
|
|
|
|
+ @click.prevent="toggleMapSelectMode"
|
|
|
class="grid-btn"
|
|
class="grid-btn"
|
|
|
>
|
|
>
|
|
|
<i :class="mapSelectMode ? 'el-icon-close' : 'el-icon-location'"></i>
|
|
<i :class="mapSelectMode ? 'el-icon-close' : 'el-icon-location'"></i>
|
|
@@ -650,9 +654,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="waypoint-actions">
|
|
<div class="waypoint-actions">
|
|
|
- <el-button size="mini" type="text" @click.stop="$emit('wp-edit', waypoint)" class="action-btn">编辑</el-button>
|
|
|
|
|
|
|
+ <el-button size="mini" type="text" native-type="button" @click.stop.prevent="$emit('wp-edit', waypoint)" class="action-btn">编辑</el-button>
|
|
|
<el-popconfirm title="删除当前目标点?" @confirm="$emit('wp-remove', waypoint)">
|
|
<el-popconfirm title="删除当前目标点?" @confirm="$emit('wp-remove', waypoint)">
|
|
|
- <el-button size="mini" type="text" slot="reference" @click.stop class="action-btn">删除</el-button>
|
|
|
|
|
|
|
+ <el-button size="mini" type="text" native-type="button" slot="reference" @click.stop.prevent class="action-btn">删除</el-button>
|
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -694,11 +698,11 @@
|
|
|
<span class="task-status" :class="'status-' + task.status">{{ getTaskStatusText(task.status) }}</span>
|
|
<span class="task-status" :class="'status-' + task.status">{{ getTaskStatusText(task.status) }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="task-actions">
|
|
<div class="task-actions">
|
|
|
- <el-button size="mini" type="text" @click="$emit('task-view', task)">查看</el-button>
|
|
|
|
|
- <el-button size="mini" type="text" @click="$emit('task-start', task)">开始</el-button>
|
|
|
|
|
- <el-button size="mini" type="text" @click="$emit('task-pause', task)">暂停</el-button>
|
|
|
|
|
- <el-button size="mini" type="text" @click="$emit('task-stop', task)">停止</el-button>
|
|
|
|
|
- <el-button size="mini" type="text" @click="$emit('task-remove', task)">删除</el-button>
|
|
|
|
|
|
|
+ <el-button size="mini" type="text" native-type="button" @click.prevent="$emit('task-view', task)">查看</el-button>
|
|
|
|
|
+ <el-button size="mini" type="text" native-type="button" @click.prevent="$emit('task-start', task)">开始</el-button>
|
|
|
|
|
+ <el-button size="mini" type="text" native-type="button" @click.prevent="$emit('task-pause', task)">暂停</el-button>
|
|
|
|
|
+ <el-button size="mini" type="text" native-type="button" @click.prevent="$emit('task-stop', task)">停止</el-button>
|
|
|
|
|
+ <el-button size="mini" type="text" native-type="button" @click.prevent="$emit('task-remove', task)">删除</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -717,9 +721,10 @@
|
|
|
v-if="panelType === 'nav'"
|
|
v-if="panelType === 'nav'"
|
|
|
class="nav-panel-close-btn"
|
|
class="nav-panel-close-btn"
|
|
|
type="text"
|
|
type="text"
|
|
|
|
|
+ native-type="button"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
icon="el-icon-arrow-right"
|
|
icon="el-icon-arrow-right"
|
|
|
- @click="$emit('update:visible', false)"
|
|
|
|
|
|
|
+ @click.prevent="$emit('update:visible', false)"
|
|
|
title="收起面板"
|
|
title="收起面板"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|