fix:修复列表头部配置组件bug
This commit is contained in:
@@ -84,10 +84,12 @@ export default {
|
|||||||
//全选all true 或者全取消cancel false按钮
|
//全选all true 或者全取消cancel false按钮
|
||||||
batchHandler(state) {
|
batchHandler(state) {
|
||||||
for (let index = 0; index < this.custom.length; index++) {
|
for (let index = 0; index < this.custom.length; index++) {
|
||||||
if (index == 0 || index == 1 || this.custom[index].NotSet) {
|
if(this.custom[index].type != 'title'){
|
||||||
this.custom[index].show = true;
|
if ((index == 0 || index == 1 || this.custom[index].NotSet)) {
|
||||||
} else {
|
this.custom[index].show = true;
|
||||||
this.custom[index].show = state;
|
} else {
|
||||||
|
this.custom[index].show = state;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -114,7 +116,7 @@ export default {
|
|||||||
isCancel() {
|
isCancel() {
|
||||||
let isCancel = true;
|
let isCancel = true;
|
||||||
for (let i = 0; i < this.custom.length; i++) {
|
for (let i = 0; i < this.custom.length; i++) {
|
||||||
if (!this.custom[i].show) {
|
if (!this.custom[i].show&&this.custom[i].type != 'title') {
|
||||||
isCancel = false;
|
isCancel = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user