显隐列初始默认隐藏列

This commit is contained in:
RuoYi 2021-03-24 15:46:37 +08:00
parent 505fa06dc3
commit 090e258bf9
2 changed files with 10 additions and 10 deletions

View File

@ -43,7 +43,14 @@ export default {
type: Array, type: Array,
}, },
}, },
created() {
//
for (let item in this.columns) {
if (this.columns[item].visible === false) {
this.value.push(parseInt(item));
}
}
},
methods: { methods: {
// //
toggleSearch() { toggleSearch() {

View File

@ -81,14 +81,6 @@ export default {
}, },
previews: {} previews: {}
}; };
},
created() {
//
for (let item in this.columns) {
if (this.columns[item].visible === false) {
this.value.push(parseInt(item))
}
}
}, },
methods: { methods: {
// //
@ -145,9 +137,10 @@ export default {
realTime(data) { realTime(data) {
this.previews = data; this.previews = data;
}, },
// //
closeDialog() { closeDialog() {
this.options.img = store.getters.avatar this.options.img = store.getters.avatar
this.visible = false;
} }
} }
}; };