| | |
| | | // } |
| | | // }, |
| | | getList(params) { |
| | | this.$HTTP.get(`/api/blade-cps/workstation/listDatapointsByWorkstationId`, {}, { params }).then(res => { |
| | | this.$HTTP.get(`/api/smis/workstation/listDatapointsByWorkstationId`, {}, { params }).then(res => { |
| | | try { |
| | | this.cols = JSON.parse(res.data.dpHead) |
| | | this.addOptions(this.cols) |
| | |
| | | if (len != this.tabledata.length) { |
| | | return this.$message.warning('数据点名称不能重复') |
| | | } |
| | | this.$HTTP.put('/api/blade-cps/workstation/saveDatapoints', { |
| | | this.$HTTP.put('/api/smis/workstation/saveDatapoints', { |
| | | dpConfig: JSON.stringify(this.tabledata.map(v => { |
| | | delete v.status |
| | | return v |