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

@@ -1,5 +1,10 @@
<template>
<div>
<card title='Filtro general'>
<base-input label="Filtro de fechas" v-model="filtro.fechas"></base-input>
<base-input label="Número de presupuestos" type="number" v-model="filtro.npresupuesto"></base-input>
<base-button @click='guardarFiltro()' type="info">Guardar</base-button>
</card>
<div class="row">
<card title="Categorias">
<div class="row">
@@ -123,16 +128,16 @@
<script>
import { Table, TableColumn } from "element-ui";
export default {
middleware: "authenticated",
components: {
components: {
[Table.name]: Table,
[TableColumn.name]: TableColumn,
},
mounted() {
this.getCategorias();
this.getMetodos();
this.filtro=this.$store.state.filtro
},
data() {
return {
@@ -178,9 +183,16 @@ export default {
],
categorias: [],
metodos: [],
filtro:{
fechas:this.$store.state.filtro.fechas,
npresupuesto:this.$store.state.filtro.npresupuesto
}
};
},
methods: {
guardarFiltro(){
this.$store.commit("actualizarFiltro",this.filtro)
},
enviarCategoria() {
const axiosHeader = {
headers: {