|
@@ -192,12 +192,12 @@ export default {
|
|
|
|
|
|
},
|
|
|
handleDelete(row){
|
|
|
- alert(row.id);
|
|
|
- this.tableData.forEach((item, index) => {
|
|
|
- if(item.id == row.id){
|
|
|
- this.tableData.splice(item);
|
|
|
- }
|
|
|
- })
|
|
|
+ this.tableData.forEach((item, index) => {
|
|
|
+ if(item.id == row.id){
|
|
|
+ this.tableData.splice(index,1);
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
mounted: function() {
|