Commit 5fa87666 by liushikai

自定义列修复

parent c2ca38cb
......@@ -513,16 +513,10 @@ export default {
saveColumnEvent() {
this.setColumnFlg = false;
this.saveColumnFlg = false;
this.saveColumns = this.setColumn
.filter((item) => item.value)
.map((item) => this.stmData.columns[item.index]);
this.saveColumns = this.columnGroup.map((index)=>this.stmData.columns[index]);
},
setAll(val) {
this.columnGroup = val
? this.setColumn.map((item) => {
return item.index;
})
: [];
this.columnGroup = val ? this.setColumn.map((item) => item.index) : [];
this.isIndeterminate = false;
},
handleColumnChange() {
......@@ -540,9 +534,7 @@ export default {
let label = item.substring(begIdx + 1, endIdx);
return { label, value: true, index };
});
this.columnGroup = this.setColumn.map((item) => {
return item.index;
});
this.columnGroup = this.setColumn.map((item) => item.index);
},
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment