显隐列初始默认隐藏列

master
RuoYi 4 years ago
parent 505fa06dc3
commit 090e258bf9
  1. 9
      ruoyi-ui/src/components/RightToolbar/index.vue
  2. 11
      ruoyi-ui/src/views/system/user/profile/userAvatar.vue

@ -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() {

@ -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;
} }
} }
}; };

Loading…
Cancel
Save