|
@@ -277,21 +277,28 @@
|
|
|
});
|
|
|
},
|
|
|
rowDel(row) {
|
|
|
- this.$confirm("确定将选择数据删除?", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- return removeBserviceterms(row.id);
|
|
|
+ if (row.status === 1) {
|
|
|
+ this.$confirm("确定将选择数据删除?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- this.onLoad(this.page);
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
+ .then(() => {
|
|
|
+ return removeBserviceterms(row.id);
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.onLoad(this.page);
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "操作成功!"
|
|
|
+ });
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: '非禁用状态无法删除',
|
|
|
+ type: 'warning'
|
|
|
});
|
|
|
+ }
|
|
|
},
|
|
|
handleDelete() {
|
|
|
if (this.selectionList.length === 0) {
|