complete user settings
This commit is contained in:
@@ -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: {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user