diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue index 16b37500..0644f30a 100644 --- a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue +++ b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue @@ -299,7 +299,7 @@ /> - + @@ -577,8 +577,8 @@ const resetForm = () => { pointNature: pointNatureList[0].id, //监测点性质 powerSubstationName: '', //电网侧变电站 timeInterval: timeIntervalList[0].id, //测量间隔 - voltageDeviationLowerLimit: '0', //电压偏差下限 - voltageDeviationUpperLimit: '0', // 电压偏差上限 + voltageDeviationLowerLimit: 0, //电压偏差下限 + voltageDeviationUpperLimit: 0, // 电压偏差上限 voltageLevel: voltageLevelList[0].id, //监测点电压等级 ptType: ptTypeList[0].id, //接线方式 num: numList[0].id //线路号 @@ -615,15 +615,15 @@ const changevoltageDeviationLimit = async () => { const val = obj?.value if (Number(val) > 35) { form.value.voltageDeviationUpperLimit = 10 - form.value.voltageDeviationLowerLimit = 10 + form.value.voltageDeviationLowerLimit = -10 } if (Number(val) < 20) { form.value.voltageDeviationUpperLimit = 7 - form.value.voltageDeviationLowerLimit = 7 + form.value.voltageDeviationLowerLimit = -7 } if (Number(val) < 0.22) { form.value.voltageDeviationUpperLimit = 7 - form.value.voltageDeviationLowerLimit = 10 + form.value.voltageDeviationLowerLimit = -10 } //PT变比 电压<0.48kv 1:1 电压>0.48 *1000/100 if (Number(val) <= 0.48) { @@ -694,8 +694,6 @@ const changeUserName = () => { let obj: any = projectList.value.find((item: any) => { return form.value.userName == item.id }) - // console.log('🚀 ~ letobj:any=projectList.value.find ~ projectList.value.find:', projectList.value) - // console.log(obj, '88888888') form.value = { ...form.value, city: obj?.city, @@ -714,7 +712,6 @@ const changeUserName = () => { //回显数据 if (obj.userType == '2' || obj.userType == '3' || obj.userType == '4' || obj.userType == '5') { getUserReportById(obj.id).then(res => { - // console.log(res.data, '继续查询数据') const obj = res.data form.value = { ...form.value, @@ -727,7 +724,6 @@ const changeUserName = () => { }) } else if (obj.userType == '0' || obj.userType == '1') { getUserReportById(obj.id).then(res => { - // console.log(res.data, '继续查询数据') const obj = res.data form.value = { ...form.value, @@ -740,7 +736,6 @@ const changeUserName = () => { }) } else if (obj.userType == '6') { getUserReportById(obj.id).then(res => { - // console.log(res.data, '继续查询数据') const obj = res.data form.value = { ...form.value, @@ -1034,7 +1029,6 @@ watch( let obj: any = projectList.value.find((item: any) => { return rowValue.value.createBy == item.createBy }) - // console.log(projectList.value, '000000', obj, rowValue.value.createBy) form.value = { ...form.value, reporter: obj?.reporter, @@ -1057,7 +1051,7 @@ const handleExceed: UploadProps['onExceed'] = files => { } let uploadName = ref('') //上传报告字段名称 -const uploadFileName = val => { +const uploadFileName = (val: any) => { uploadName.value = val } //移除文件上传 @@ -1161,7 +1155,6 @@ const confirmForm = (flag: boolean) => { }) } else { confirmFormData.id = resendId.value - // console.log(confirmFormData, '99999999999') updateMointorPointFormData(confirmFormData).then(res => { if (res.code == 'A0000') { ElMessage({