From 179136b6d89e4d24c37fc3981848f62b5673495c Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期二, 18 六月 2024 23:17:28 +0800 Subject: [PATCH] 默认2 --- src/views/mdc/processParam/index.vue | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/views/mdc/processParam/index.vue b/src/views/mdc/processParam/index.vue index 1db46ad..26e72ba 100644 --- a/src/views/mdc/processParam/index.vue +++ b/src/views/mdc/processParam/index.vue @@ -198,14 +198,20 @@ }).then(res => { if (res.code === 200) { if (item.name !== 'DeviceStatus') { - this.tableData = res.data.records + this.tableData = res.data.records.map(v => { + return { + ...v, + } + }) + } else { + this.tableData = res.data.records.map(item => { + return { + ...item, + value: this.legend.find(v => v.code === item.value)?.name + } + }) } - this.tableData = res.data.records.map(item => { - return { - ...item, - value: this.legend.find(v => v.code === item.value)?.name - } - }) + this.drawer = true } }) @@ -347,7 +353,7 @@ tooltip: { show: true, trigger: 'item', - // position: 'dom', + position: 'top', triggerOn: 'click', formatter: (value, ticket) => { // console.log('----------1111') -- Gitblit v1.9.3