|
@@ -124,7 +124,7 @@
|
|
|
size="small"
|
|
|
icon="el-icon-edit"
|
|
|
type="text"
|
|
|
- @click="rowDel(row, index)"
|
|
|
+ @click="rowDel(row)"
|
|
|
:disabled="detailData.status == 1"
|
|
|
>删 除</el-button
|
|
|
>
|
|
@@ -413,7 +413,7 @@ export default {
|
|
|
this.$set(row, "$cellEdit", true);
|
|
|
}
|
|
|
},
|
|
|
- rowDel(row, index) {
|
|
|
+ rowDel(row) {
|
|
|
this.$confirm("确定删除数据?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -425,14 +425,14 @@ export default {
|
|
|
type: "success",
|
|
|
message: "删除成功!"
|
|
|
});
|
|
|
- this.freightData.splice(index, 1);
|
|
|
+ this.freightData.splice(row.$index, 1);
|
|
|
});
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: "success",
|
|
|
message: "删除成功!"
|
|
|
});
|
|
|
- this.freightData.splice(index, 1);
|
|
|
+ this.freightData.splice(row.$index, 1);
|
|
|
}
|
|
|
});
|
|
|
},
|