| | |
| | | <!-- |
| | | * @Date: 2024-04-09 22:11:21 |
| | | * @LastEditors: gaoshp |
| | | * @LastEditTime: 2024-11-03 17:26:18 |
| | | * @LastEditTime: 2024-11-04 19:16:35 |
| | | * @FilePath: /cps-web/src/views/mdc/processParam/index.vue |
| | | 实时看板 |
| | | --> |
| | |
| | | this.$HTTP.post('/api/mdc/process-parameter/item?current=1&size=1500', { |
| | | endTime: this.timeRange.endTime, |
| | | startTime: this.timeRange.startTime, |
| | | item: item.name, |
| | | item: item.dpName, |
| | | methodEnum: "HOUR", |
| | | workstationId: this.treeChecked.toString(), |
| | | workstationName: '' |
| | |
| | | }, |
| | | query() { |
| | | if (!this.treeChecked.toString()) return |
| | | console.log(this.treeChecked.toString(), '>>>>>>>>>/') |
| | | this.$refs?.timeLine?.init({ |
| | | dates: this.time, |
| | | workstationId: this.treeChecked.toString() |
| | |
| | | this.list = [] |
| | | 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 => { |
| | | let name = v.isProcessParam ? 'ProcessProgram' : v.dpName |
| | | return { |
| | |
| | | } else { |
| | | this.setLineOptions(res.data.data, item.dpName) |
| | | } |
| | | console.log(this.list, '>>>>>>>>>>//////1') |
| | | }) |
| | | }, |
| | | setLineOptions(data, myname) { |
| | |
| | | tooltip: { |
| | | show: true, |
| | | trigger: 'item', |
| | | position: 'top', |
| | | // position: 'top', |
| | | triggerOn: 'click', |
| | | formatter: (value, ticket) => { |
| | | // console.log('----------1111') |
| | |
| | | }, |
| | | }, |
| | | } |
| | | console.log(dayCharts, '>>>>>>>???') |
| | | let index = this.list.findIndex(item => item.dpName === myname) |
| | | this.list[index] = Object.assign({ |
| | | ...this.list[index], |