| | |
| | | save(){ |
| | | this.customizing = false |
| | | this.$refs.widgets.style.removeProperty('transform') |
| | | this.$TOOL.data.set("grid", this.grid) |
| | | this.$TOOL.data.set("grid", this.grid); |
| | | //this.apiResource.workStationIdList |
| | | //保存接口 |
| | | //var copmsList = this.grid.copmsList; |
| | | //var flattened = copmsList.reduce((acc, val) => acc.concat(val), []); //扁平化 |
| | | //var data = this.grid.data.filter(item=>this.nowCompsList.includes(item.cardKey)); |
| | | this.grid.data.forEach(item=> { |
| | | item.layoutConfig = JSON.stringify(this.grid.copmsList); |
| | | if(item.cardKey == "mdcRunning") { |
| | | item.apiResource = JSON.stringify({workStationIdList: []}) |
| | | } |
| | | }) |
| | | var obj = { |
| | | workbenchCardAddVOList: this.grid.data, |