|
|
|
@ -20,7 +20,7 @@ |
|
|
|
> |
|
|
|
> |
|
|
|
<template #menu-left> |
|
|
|
<template #menu-left> |
|
|
|
<el-button type="primary" @click="handleAdd">新增 </el-button> |
|
|
|
<el-button type="primary" @click="handleAdd">新增 </el-button> |
|
|
|
<el-button type="danger" icon="el-icon-delete" @click="handleDelete" |
|
|
|
<el-button type="danger" @click="handleDelete" |
|
|
|
>删除 |
|
|
|
>删除 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
@ -249,7 +249,7 @@ export default { |
|
|
|
//删除 |
|
|
|
//删除 |
|
|
|
handleDelete() { |
|
|
|
handleDelete() { |
|
|
|
if (this.selectionList.length === 0) { |
|
|
|
if (this.selectionList.length === 0) { |
|
|
|
this.$message.warning('请选择至少一条数据'); |
|
|
|
this.$message.error('请选择至少一条数据'); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
this.$confirm('确定将选择数据删除?', { |
|
|
|
this.$confirm('确定将选择数据删除?', { |
|
|
|
|