sort tables ok
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user