From d76a1d26863a9c703096c9b9d8058b4f818475a7 Mon Sep 17 00:00:00 2001 From: szz <961120009@qq.com> Date: Fri, 6 Jun 2025 09:07:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=8E=A5=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/equipment/common/AddMonitorData.vue | 400 ++++++++++++++---- src/views/equipment/equipmentDetails.vue | 146 +++++-- 2 files changed, 419 insertions(+), 127 deletions(-) diff --git a/src/views/equipment/common/AddMonitorData.vue b/src/views/equipment/common/AddMonitorData.vue index 8c7b6b5..d9dded3 100644 --- a/src/views/equipment/common/AddMonitorData.vue +++ b/src/views/equipment/common/AddMonitorData.vue @@ -26,7 +26,69 @@ const dialogVisible = ref(false) const form = ref({ dataType: [] }) - +let lists = [ + // { + // name: '同心度报警门槛值', + // value: '', + // unit: 'mm', + // label: 'bjmkztxd', // 同心度报警门槛值 + // }, + { + name: '同心度公差', + value: '', + unit: 'mm', + label: 'gctxd' + }, + // { + // name: '偏心报警门槛值', + // value: '', + // unit: 'mm', + // label: 'bjmkzpx' + // }, + { + name: '偏心度公差', + value: '', + unit: 'mm', + label: 'gcpxd' + }, + { + name: '偏心公差', + value: '', + unit: 'mm', + label: 'gcpx' + }, { + name: '收缩率', + value: '', + unit: '%', + label: 'ssl' + }, + // { + // name: '负报警门槛值', + // value: '', + // unit: 'mm', + // label: 'fbjmkz' + // }, { + // name: '正报警门槛值', + // value: '', + // unit: 'mm', + // label: 'zbjmkz' + // }, + { + name: '负公差', + value: '', + unit: 'mm', + label: 'fgc' + }, { + name: '正公差', + value: '', + unit: 'mm', + label: 'zgc' + }, { + name: '标称值', + value: '', + unit: 'mm', + label: 'bcz' + }] const options = [ { value: 'conductorDiameter', @@ -36,91 +98,46 @@ const options = [ value: { title: '导体直径', calculationValue: 'DmCORE@0', - productValue: '', - lists: [ - { - name: '同心度报警门槛值', - value: '', - unit: 'mm', - label: 'bjmkztxd', // 同心度报警门槛值 - }, { - name: '同心度公差', - value: '', - unit: 'mm', - label: 'gctxd' - }, { - name: '偏心报警门槛值', - value: '', - unit: 'mm', - label: 'bjmkzpx' - }, { - name: '偏心度公差', - value: '', - unit: 'mm', - label: 'gcpxd' - }, { - name: '偏心公差', - value: '', - unit: 'mm', - label: 'gcpx' - }, { - name: '收缩率', - value: '', - unit: 'mm', - label: 'ssl' - }, { - name: '负报警门槛值', - value: '', - unit: 'mm', - label: 'fbjmkz' - }, { - name: '正报警门槛值', - value: '', - unit: 'mm', - label: 'zbjmkz' - }, { - name: '负公差', - value: '', - unit: 'mm', - label: 'fgc' - }, { - name: '正公差', - value: '', - unit: 'mm', - label: 'zgc' - }, { - name: '标称值', - value: '', - unit: 'mm', - label: 'bcz' - }], + productValue: 'DmCORE', + lists, defIndex: 0, value:'', - unit:'' + unit:'', + xy:'xy' }, label: '导体直径' }, { value: { title: '导体直径X', - calculationValue: ['DmCORE@1'], - productValue: [''] + calculationValue: 'DmCORE@1', + productValue: 'DmCORE', + lists, + defIndex: 0, + value: '', + unit: '', + xy:'xy' }, label: '导体直径X' }, { value: { title: '导体直径Y', - calculationValue: ['DmCORE@2'], - productValue: [''] + calculationValue: 'DmCORE@2', + productValue: 'DmCORE', + lists, + defIndex: 0, + value: '', + unit: '', + xy:'xy' }, label: '导体直径Y' }, { value: { title: '导体直径椭圆度', - calculationValue: ['DmCORE'], - productValue: ['DmCORE'] + calculationValue: 'EllipticityDmCORE', + productValue: '' }, label: '导体直径椭圆度' } @@ -131,19 +148,54 @@ const options = [ label: '热外径', children: [ { - value: 'hotOuterDiameter', + value: { + title: '热外径', + calculationValue: 'DmALL@0', + productValue: 'DmALL', + lists, + defIndex: 0, + value: '', + unit: '', + xy:'xy' + }, label: '热外径' }, { - value: 'hotOuterDiameterX', + value: { + title: '热外径X', + calculationValue: 'DmALL@1', + productValue: 'DmALL', + lists, + defIndex: 0, + value: '', + unit: '', + xy:'xy' + }, label: '热外径X' }, { - value: 'hotOuterDiameterY', + value: { + title: '热外径Y', + calculationValue: 'DmALL@2', + productValue: 'DmALL', + lists, + defIndex: 0, + value: '', + unit: '', + xy:'xy' + }, label: '热外径Y' }, { - value: 'hotOuterDiameterOval', + value: { + title: '热外径椭圆度', + calculationValue: 'EllipticityDmALL', + productValue: 'DmALL', + lists, + defIndex: 0, + value: '', + unit: '', + }, label: '热外径椭圆度' } ] @@ -157,23 +209,63 @@ const options = [ label: '总厚度', children: [ { - value: 'totalThickness', + value: { + title: '总厚度', + calculationValue: 'AvgALL', + productValue: 'WtALL', + lists, + defIndex: 0, + value: '', + unit: '', + }, label: '总厚度' }, { - value: 'totalThicknessMin', + value: { + title: '总厚度', + calculationValue: 'MinALL', + productValue: 'WtALL', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '总厚度最小厚度' }, { - value: 'totalThickness', + value: { + title: '总厚度偏心', + calculationValue: 'EccentricALL', + productValue: 'WtALL', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '总厚度偏心' }, { - value: 'totalThicknessOval', + value: { + title: '总厚度偏心度', + calculationValue: 'EccentricityALL', + productValue: 'WtALL', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '总厚度偏心度' }, { - value: 'totalThicknessMax', + value: { + title: '总厚度同心度', + calculationValue: 'ConcentricityALL', + productValue: 'WtALL', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '总厚度同心度' } ] @@ -183,23 +275,63 @@ const options = [ label: '内屏层厚度', children: [ { - value: 'innerShieldThickness', + value: { + title: '内屏层厚度', + calculationValue: 'AvgISC', + productValue: 'WtISC', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '内屏层厚度' }, { - value: 'innerShieldThicknessMin', + value: { + title: '内屏层最小厚度', + calculationValue: 'WtISC', + productValue: '', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '内屏层最小厚度' }, { - value: 'innerShieldThicknessMax', + value: { + title: '内屏层偏心', + calculationValue: 'EccentricISC', + productValue: 'WtISC', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '内屏层偏心' }, { - value: 'innerShieldThicknessOval', + value: { + title: '内屏层同心度', + calculationValue: 'ConcentricityISC', + productValue: 'WtISC', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '内屏层同心度' }, { - value: 'innerShieldThicknessMax', + value: { + title: '内屏层偏心度', + calculationValue: 'EccentricityISC', + productValue: 'WtISC', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '内屏层偏心度' } ] @@ -209,23 +341,63 @@ const options = [ label: '绝缘层厚度', children: [ { - value: 'insulationThickness', + value: { + title: '绝缘层厚度', + calculationValue: 'AvgINS', + productValue: 'WtINS', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '绝缘层厚度' }, { - value: 'insulationThicknessMin', + value: { + title: '绝缘层最小厚度', + calculationValue: 'MinINS', + productValue: 'WtINS', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '绝缘层最小厚度' }, { - value: 'insulationThicknessMax', + value: { + title: '绝缘层偏心', + calculationValue: 'EccentricINS', + productValue: '', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '绝缘层偏心' }, { - value: 'insulationThicknessOval', + value: { + title: '绝缘层同心度', + calculationValue: 'ConcentricityINS', + productValue: '', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '绝缘层同心度' }, { - value: 'insulationThicknessMax', + value: { + title: '绝缘层偏心度', + calculationValue: 'EccentricINS', + productValue: '', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '绝缘层偏心度' } ] @@ -235,31 +407,71 @@ const options = [ label: '外屏层厚度', children: [ { - value: 'outerShieldThickness', + value: { + title: '外屏层厚度', + calculationValue: 'AvgOSC', + productValue: '', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '外屏层厚度' }, { - value: 'outerShieldThicknessMin', + value: { + title: '外屏层最小厚度', + calculationValue: 'MinOSC', + productValue: '', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '外屏层最小厚度' }, { - value: 'outerShieldThicknessMax', + value: { + title: '外屏层偏心', + calculationValue: 'EccentricOSC', + productValue: '', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '外屏层偏心' }, { - value: 'outerShieldThicknessOval', + value: { + title: '外屏层同心度', + calculationValue: 'ConcentricityOSC', + productValue: '', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '外屏层同心度' }, { - value: 'outerShieldThicknessMax', + value: { + title: '外屏层偏心度', + calculationValue: 'EccentricityOSC', + productValue: '', + lists, + defIndex: 0, + value: '', + unit: '' + }, label: '外屏层偏心度' } ] }, - { - value: 'productionInfo', - label: '生产线信息' - } + // { + // value: 'productionInfo', + // label: '生产线信息' + // } ] // 打开弹窗 diff --git a/src/views/equipment/equipmentDetails.vue b/src/views/equipment/equipmentDetails.vue index 6af3f94..65baf35 100644 --- a/src/views/equipment/equipmentDetails.vue +++ b/src/views/equipment/equipmentDetails.vue @@ -70,19 +70,19 @@