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

@@ -44,7 +44,7 @@
icon
size="sm"
class="btn-link"
@click="updateCompraClic($index)"
@click="updateCompraClic(row._id)"
>
<i class="el-icon-edit"></i>
</base-button>
@@ -134,6 +134,7 @@ export default {
const axiosHeader = {
headers: {
token: this.$store.state.auth.token,
filtro:this.$store.state.filtro.fechas
},
};
this.$axios
@@ -183,9 +184,10 @@ export default {
},
updateCompraClic(id) {
this.isUpdate = true;
this.newCompra = JSON.parse(JSON.stringify(this.compras[id]));
var reg_edit = this.compras.filter((ic) => ic._id===id)[0];
this.newCompra = JSON.parse(JSON.stringify(reg_edit));
this.openForm = true;
console.log("SJS")
console.log(reg_edit)
},
deleteCompra(id) {