complete user settings

This commit is contained in:
Rodrigo Quelca
2021-08-30 23:32:23 +00:00
parent e9f32179ae
commit d818744e93
7 changed files with 127 additions and 61 deletions

View File

@@ -358,16 +358,34 @@ export default {
this.openDefaultCase();
// define sort event
Event.$on('vue-tables.todo.sorted', function (data) {
that.$emit("updateUserSettings", "orderBy", data);
that.$emit("updateSettings", {
data: data,
key: "orderBy",
parent: this.page,
type: "normal",
id: this.id
});
});
},
watch: {
columns: function (val) {
this.$emit("updateUserSettings", "columns", val);
},
filters: function (val) {
this.$emit("updateUserSettings", "filters", val);
},
columns: function (val) {
this.$emit("updateSettings", {
data: val,
key: "columns",
parent: this.page,
type: "normal",
id: this.id
});
},
filters: function (val) {
this.$emit("updateSettings", {
data: val,
key: "filters",
parent: this.page,
type: "normal",
id: this.id
});
},
},
computed: {
/**