From 56a11cf7d6172627a9abb90d4e0798179e055d14 Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Mon, 28 Oct 2024 14:56:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B5=8B=E8=AF=95=E9=A1=B9?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=94=B5=E5=8E=8B=E7=AD=89=E7=BA=A7=E6=9B=B4?= =?UTF-8?q?=E6=96=B0PT=E5=8F=98=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device/planData/components/popup.vue | 20 ++- src/views/govern/device/planData/index.vue | 121 ++++++++++++------ 2 files changed, 100 insertions(+), 41 deletions(-) diff --git a/src/views/govern/device/planData/components/popup.vue b/src/views/govern/device/planData/components/popup.vue index a43c664..88857cf 100644 --- a/src/views/govern/device/planData/components/popup.vue +++ b/src/views/govern/device/planData/components/popup.vue @@ -186,7 +186,7 @@ import { useDictData } from '@/stores/dictData' import TreeTransfers from './treeTransfers.vue' const dictData = useDictData() const dialogVisible = ref(false) -const voltageLevelList = dictData.getBasicData('Dev_Voltage_Stand') +const voltageLevelList: any = dictData.getBasicData('Dev_Voltage_Stand') const volConTypeList = dictData.getBasicData('Dev_Connect') const emit = defineEmits(['onSubmit']) //表单数据 @@ -277,6 +277,17 @@ const changeVoltageLevel = async () => { } else { form1.value.capacitySscb = 9000 } + + //PT变比 电压<0.48kv 1:1 电压>0.48 *1000/100 + console.log(value,"999"); + if (Number(value) <= 0.48) { + form1.value.pt = 1 + form1.value.pt1 = 1 + } + if (Number(value) > 0.48) { + form1.value.pt = value * 10 + form1.value.pt1 = 1 + } } initForm() @@ -399,19 +410,18 @@ const detailsType = (val: any) => { } //回显方案、测试项操作 const details = (val: any) => { - console.log(val,"88888"); + console.log(val, '88888') if (val) { form.value = { describe: val.describe, itemName: val.itemName } - } - if(val){ + } + if (val) { form1.value = val checkedIdList.value = form1.value.list } - return //修改方案回显 if (popupType.value == 1) { diff --git a/src/views/govern/device/planData/index.vue b/src/views/govern/device/planData/index.vue index 7f73f1c..002faf2 100644 --- a/src/views/govern/device/planData/index.vue +++ b/src/views/govern/device/planData/index.vue @@ -21,8 +21,12 @@
测试项信息
-->{{ chartTitle }}