From e5cdf3af17609b49138cec3e8fb200752365f651 Mon Sep 17 00:00:00 2001 From: lzhe <lzhe@example.com> Date: 星期五, 01 十一月 2024 14:58:12 +0800 Subject: [PATCH] 1 --- src/views/mdc/processParam/index.vue | 32 +++++++++++++++++++------------- 1 files changed, 19 insertions(+), 13 deletions(-) diff --git a/src/views/mdc/processParam/index.vue b/src/views/mdc/processParam/index.vue index 1aa5b51..ca5844f 100644 --- a/src/views/mdc/processParam/index.vue +++ b/src/views/mdc/processParam/index.vue @@ -1,7 +1,7 @@ <!-- * @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 瀹炴椂鐪嬫澘 --> @@ -150,7 +150,7 @@ }, 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, @@ -172,7 +172,7 @@ 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 } @@ -181,7 +181,7 @@ 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, @@ -217,7 +217,7 @@ 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 => { @@ -243,20 +243,26 @@ ...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)) { -- Gitblit v1.9.3