| | |
| | | <!-- |
| | | * @Date: 2024-04-09 22:11:21 |
| | | * @LastEditors: gaoshp |
| | | * @LastEditTime: 2024-10-27 14:55:20 |
| | | * @LastEditTime: 2024-10-28 19:51:45 |
| | | * @FilePath: /cps-web/src/views/mdc/processParam/index.vue |
| | | 实时看板 |
| | | --> |
| | |
| | | }, |
| | | save() { |
| | | console.log(this.checkedCities) |
| | | this.$HTTP.post(`/api/blade-mdc/process-parameter/excel/export`, { |
| | | this.$HTTP.post(`/api/mdc/process-parameter/excel/export`, { |
| | | collectItem: this.list.filter(v => this.checkedCities.includes(v.id)), |
| | | endTime: this.timeRange.endTime, |
| | | startTime: this.timeRange.startTime, |
| | |
| | | this.visible = true |
| | | }, |
| | | init() { |
| | | this.$HTTP.get('/api/blade-mdc/process-parameter').then(res => { |
| | | this.$HTTP.get('/api/mdc/process-parameter').then(res => { |
| | | if (res.code === 200) { |
| | | this.legend = res.data |
| | | } |
| | |
| | | viewData(item) { |
| | | this.drawerName = item.dpLabel |
| | | |
| | | this.$HTTP.post('/api/blade-mdc/process-parameter/item?current=1&size=1500', { |
| | | this.$HTTP.post('/api/mdc/process-parameter/item?current=1&size=1500', { |
| | | endTime: this.timeRange.endTime, |
| | | startTime: this.timeRange.startTime, |
| | | item: item.name, |
| | |
| | | workstationId: this.treeChecked.toString() |
| | | }) |
| | | this.list = [] |
| | | this.$HTTP.get('/api/blade-mdc/process-parameter/params', { workstationId: this.treeChecked.toString() }).then(res => { |
| | | this.$HTTP.get('/api/mdc/process-parameter/params', { workstationId: this.treeChecked.toString() }).then(res => { |
| | | if (res.code === 200) { |
| | | console.log('jkjkjkjkj', this.list) |
| | | this.list = res.data.map(v => { |
| | |
| | | ...this.list[index], |
| | | dayCharts: {} |
| | | }) |
| | | this.$HTTP.post('/api/blade-mdc/process-parameter/chart/dmp-item', { |
| | | let params = { ...item } |
| | | try { |
| | | delete params.name |
| | | delete params.height |
| | | } catch (err) { console.error(err) } |
| | | this.$HTTP.post('/api/mdc/process-parameter/chart/dmp-item', { |
| | | methodEnum: "HOUR", |
| | | startTime: this.timeRange.startTime, |
| | | endTime: this.timeRange.endTime, |
| | | workstationId: this.treeChecked.toString(), |
| | | workstationName: '', |
| | | dmpDTO: { |
| | | dpDTO: { |
| | | id: this.treeChecked.toString(), |
| | | dmpDeviced: item.dmpDeviceId, |
| | | name: item.name, |
| | | description: item.description, |
| | | dataType: item.dataType, |
| | | wcsDataType: item.wcsDataType, |
| | | processParameter: item.processParameter |
| | | // name: item.name, |
| | | ...params |
| | | // dmpDeviced: item.dmpDeviceId, |
| | | // description: item.description, |
| | | // dataType: item.dataType, |
| | | // wcsDataType: item.wcsDataType, |
| | | // processParameter: item.processParameter |
| | | } |
| | | }).then(res => { |
| | | // if (['DeviceStatus', 'ProcessProgram'].includes(item.name)) { |