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