新增测试项选择电压等级更新PT变比

This commit is contained in:
zhujiyan
2024-10-28 14:56:15 +08:00
parent c078adad5a
commit 56a11cf7d6
2 changed files with 100 additions and 41 deletions

View File

@@ -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) {