|
@@ -93,12 +93,7 @@
|
|
|
<div>
|
|
|
<el-button type="primary" @click="addData">添加</el-button>
|
|
|
<el-button type="success" @click="exportAll">导出</el-button>
|
|
|
- <el-button
|
|
|
- type="danger"
|
|
|
- @click="delData"
|
|
|
- :disabled="multipleSelection?.length == 0"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ <el-button type="danger" @click="delData">删除</el-button>
|
|
|
</div>
|
|
|
<img class="print" src="/images/print.png" alt="" />
|
|
|
</div>
|
|
@@ -780,6 +775,10 @@ export default {
|
|
|
},
|
|
|
|
|
|
delData() {
|
|
|
+ if (this.multipleSelection.length == 0) {
|
|
|
+ ElMessage.error("请选择要删除的数据!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
ElMessageBox.confirm("是否确定删除当前数据?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|