Commit 5fa87666 by liushikai

自定义列修复

parent c2ca38cb
...@@ -513,16 +513,10 @@ export default { ...@@ -513,16 +513,10 @@ export default {
saveColumnEvent() { saveColumnEvent() {
this.setColumnFlg = false; this.setColumnFlg = false;
this.saveColumnFlg = false; this.saveColumnFlg = false;
this.saveColumns = this.setColumn this.saveColumns = this.columnGroup.map((index)=>this.stmData.columns[index]);
.filter((item) => item.value)
.map((item) => this.stmData.columns[item.index]);
}, },
setAll(val) { setAll(val) {
this.columnGroup = val this.columnGroup = val ? this.setColumn.map((item) => item.index) : [];
? this.setColumn.map((item) => {
return item.index;
})
: [];
this.isIndeterminate = false; this.isIndeterminate = false;
}, },
handleColumnChange() { handleColumnChange() {
...@@ -540,9 +534,7 @@ export default { ...@@ -540,9 +534,7 @@ export default {
let label = item.substring(begIdx + 1, endIdx); let label = item.substring(begIdx + 1, endIdx);
return { label, value: true, index }; return { label, value: true, index };
}); });
this.columnGroup = this.setColumn.map((item) => { this.columnGroup = this.setColumn.map((item) => item.index);
return item.index;
});
}, },
}; };
</script> </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