终端检测-监测点台账录入-电压偏差上/下限默认值修改
This commit is contained in:
@@ -577,8 +577,8 @@ const resetForm = () => {
|
|||||||
pointNature: pointNatureList[0].id, //监测点性质
|
pointNature: pointNatureList[0].id, //监测点性质
|
||||||
powerSubstationName: '', //电网侧变电站
|
powerSubstationName: '', //电网侧变电站
|
||||||
timeInterval: timeIntervalList[0].id, //测量间隔
|
timeInterval: timeIntervalList[0].id, //测量间隔
|
||||||
voltageDeviationLowerLimit: '0', //电压偏差下限
|
voltageDeviationLowerLimit: 0, //电压偏差下限
|
||||||
voltageDeviationUpperLimit: '0', // 电压偏差上限
|
voltageDeviationUpperLimit: 0, // 电压偏差上限
|
||||||
voltageLevel: voltageLevelList[0].id, //监测点电压等级
|
voltageLevel: voltageLevelList[0].id, //监测点电压等级
|
||||||
ptType: ptTypeList[0].id, //接线方式
|
ptType: ptTypeList[0].id, //接线方式
|
||||||
num: numList[0].id //线路号
|
num: numList[0].id //线路号
|
||||||
@@ -615,15 +615,15 @@ const changevoltageDeviationLimit = async () => {
|
|||||||
const val = obj?.value
|
const val = obj?.value
|
||||||
if (Number(val) > 35) {
|
if (Number(val) > 35) {
|
||||||
form.value.voltageDeviationUpperLimit = 10
|
form.value.voltageDeviationUpperLimit = 10
|
||||||
form.value.voltageDeviationLowerLimit = 10
|
form.value.voltageDeviationLowerLimit = -10
|
||||||
}
|
}
|
||||||
if (Number(val) < 20) {
|
if (Number(val) < 20) {
|
||||||
form.value.voltageDeviationUpperLimit = 7
|
form.value.voltageDeviationUpperLimit = 7
|
||||||
form.value.voltageDeviationLowerLimit = 7
|
form.value.voltageDeviationLowerLimit = -7
|
||||||
}
|
}
|
||||||
if (Number(val) < 0.22) {
|
if (Number(val) < 0.22) {
|
||||||
form.value.voltageDeviationUpperLimit = 7
|
form.value.voltageDeviationUpperLimit = 7
|
||||||
form.value.voltageDeviationLowerLimit = 10
|
form.value.voltageDeviationLowerLimit = -10
|
||||||
}
|
}
|
||||||
//PT变比 电压<0.48kv 1:1 电压>0.48 *1000/100
|
//PT变比 电压<0.48kv 1:1 电压>0.48 *1000/100
|
||||||
if (Number(val) <= 0.48) {
|
if (Number(val) <= 0.48) {
|
||||||
@@ -694,8 +694,6 @@ const changeUserName = () => {
|
|||||||
let obj: any = projectList.value.find((item: any) => {
|
let obj: any = projectList.value.find((item: any) => {
|
||||||
return form.value.userName == item.id
|
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 = {
|
||||||
...form.value,
|
...form.value,
|
||||||
city: obj?.city,
|
city: obj?.city,
|
||||||
@@ -714,7 +712,6 @@ const changeUserName = () => {
|
|||||||
//回显数据
|
//回显数据
|
||||||
if (obj.userType == '2' || obj.userType == '3' || obj.userType == '4' || obj.userType == '5') {
|
if (obj.userType == '2' || obj.userType == '3' || obj.userType == '4' || obj.userType == '5') {
|
||||||
getUserReportById(obj.id).then(res => {
|
getUserReportById(obj.id).then(res => {
|
||||||
// console.log(res.data, '继续查询数据')
|
|
||||||
const obj = res.data
|
const obj = res.data
|
||||||
form.value = {
|
form.value = {
|
||||||
...form.value,
|
...form.value,
|
||||||
@@ -727,7 +724,6 @@ const changeUserName = () => {
|
|||||||
})
|
})
|
||||||
} else if (obj.userType == '0' || obj.userType == '1') {
|
} else if (obj.userType == '0' || obj.userType == '1') {
|
||||||
getUserReportById(obj.id).then(res => {
|
getUserReportById(obj.id).then(res => {
|
||||||
// console.log(res.data, '继续查询数据')
|
|
||||||
const obj = res.data
|
const obj = res.data
|
||||||
form.value = {
|
form.value = {
|
||||||
...form.value,
|
...form.value,
|
||||||
@@ -740,7 +736,6 @@ const changeUserName = () => {
|
|||||||
})
|
})
|
||||||
} else if (obj.userType == '6') {
|
} else if (obj.userType == '6') {
|
||||||
getUserReportById(obj.id).then(res => {
|
getUserReportById(obj.id).then(res => {
|
||||||
// console.log(res.data, '继续查询数据')
|
|
||||||
const obj = res.data
|
const obj = res.data
|
||||||
form.value = {
|
form.value = {
|
||||||
...form.value,
|
...form.value,
|
||||||
@@ -1034,7 +1029,6 @@ watch(
|
|||||||
let obj: any = projectList.value.find((item: any) => {
|
let obj: any = projectList.value.find((item: any) => {
|
||||||
return rowValue.value.createBy == item.createBy
|
return rowValue.value.createBy == item.createBy
|
||||||
})
|
})
|
||||||
// console.log(projectList.value, '000000', obj, rowValue.value.createBy)
|
|
||||||
form.value = {
|
form.value = {
|
||||||
...form.value,
|
...form.value,
|
||||||
reporter: obj?.reporter,
|
reporter: obj?.reporter,
|
||||||
@@ -1057,7 +1051,7 @@ const handleExceed: UploadProps['onExceed'] = files => {
|
|||||||
}
|
}
|
||||||
let uploadName = ref('')
|
let uploadName = ref('')
|
||||||
//上传报告字段名称
|
//上传报告字段名称
|
||||||
const uploadFileName = val => {
|
const uploadFileName = (val: any) => {
|
||||||
uploadName.value = val
|
uploadName.value = val
|
||||||
}
|
}
|
||||||
//移除文件上传
|
//移除文件上传
|
||||||
@@ -1161,7 +1155,6 @@ const confirmForm = (flag: boolean) => {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
confirmFormData.id = resendId.value
|
confirmFormData.id = resendId.value
|
||||||
// console.log(confirmFormData, '99999999999')
|
|
||||||
updateMointorPointFormData(confirmFormData).then(res => {
|
updateMointorPointFormData(confirmFormData).then(res => {
|
||||||
if (res.code == 'A0000') {
|
if (res.code == 'A0000') {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
|
|||||||
Reference in New Issue
Block a user