sort tables ok

This commit is contained in:
2021-06-15 19:36:51 -05:00
parent 6dbb3c80c5
commit 14f9937d93
11 changed files with 109 additions and 85 deletions

View File

@@ -32,7 +32,7 @@
icon
size="sm"
class="btn-link"
@click="updateIngresoClic($index)"
@click="updateIngresoClic(row._id)"
>
<i class="el-icon-edit"></i>
</base-button>
@@ -109,6 +109,7 @@ export default {
const axiosHeader = {
headers: {
token: this.$store.state.auth.token,
filtro:this.$store.state.filtro.fechas
},
};
this.$axios
@@ -158,7 +159,8 @@ export default {
},
updateIngresoClic(id) {
this.isUpdate = true;
this.newIngreso = JSON.parse(JSON.stringify(this.ingresos[id]));
var reg_edit = this.ingresos.filter((ic) => ic._id===id)[0];
this.newIngreso = JSON.parse(JSON.stringify(reg_edit));
this.openForm = !this.openForm;
},