visible 是默认列表页隐藏的,我想让他们等于1的时候展示,但是代码量太多了,希望变成简写
if (this.batchRule.extendOne === 1) {
this.columns[20].visible = true
}
if (this.batchRule.extendTwo === 1) {
this.columns[21].visible = true
}
if (this.batchRule.extendThree === 1) {
this.columns[22].visible = true
}
if (this.batchRule.extendFour === 1) {
this.columns[20].visible = true
}
if (this.batchRule.extendFive === 1) {
this.columns[21].visible = true
}
if (this.batchRule.extendSix === 1) {
this.columns[22].visible = true
}