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