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 }}