|
@@ -53,8 +53,7 @@
|
|
|
<template slot="menuLeft">
|
|
|
<el-button type="primary" size="small" icon="el-icon-plus" @click="addbtnfun()">新建船名
|
|
|
</el-button>
|
|
|
- <el-button type="danger" size="small" icon="el-icon-delete" plain v-if="permission.bvessels_delete"
|
|
|
- @click="handleDelete">删 除
|
|
|
+ <el-button type="danger" size="small" icon="el-icon-delete" plain @click="handleDelete">删 除
|
|
|
</el-button>
|
|
|
<el-button type="warning" size="small" icon="el-icon-printer" @click="excelBox = true">导入
|
|
|
</el-button>
|
|
@@ -685,6 +684,14 @@ export default {
|
|
|
this.$message.warning("请选择至少一条数据");
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
+ for (const selection of this.selectionList) {
|
|
|
+ if (selection.status == 0) {
|
|
|
+ this.$message.warning("选中的数据中有启用数据,启用数据不可删除!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
this.$confirm("确定将选择数据删除?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|