Commit f2b12dc2 authored by 张伯涛's avatar 张伯涛

年度参数,热指标和度日数标定值,范围限制改成大于等于0

parent 51bfe549
...@@ -235,9 +235,9 @@ function onReviseSubmit() { ...@@ -235,9 +235,9 @@ function onReviseSubmit() {
}) })
return return
} }
if(Number(reviseForm.value.standard) > 100 || Number(reviseForm.value.standard) < 0){ if( Number(reviseForm.value.standard) < 0){
ElMessage({ ElMessage({
message: '热指标不能大于100或小于0', message: '热指标不能小于0',
type: 'error', type: 'error',
}) })
return return
...@@ -314,9 +314,9 @@ function onAddSubmit() { // 提交新增 ...@@ -314,9 +314,9 @@ function onAddSubmit() { // 提交新增
addSaveBtnLoading.value = false addSaveBtnLoading.value = false
return return
} }
if(Number(addForm.value.standard) > 100 || Number(addForm.value.standard) < 0){ if( Number(addForm.value.standard) < 0){
ElMessage({ ElMessage({
message: '热指标不能大于100或小于0', message: '热指标不能小于0',
type: 'error', type: 'error',
}) })
addSaveBtnLoading.value = false addSaveBtnLoading.value = false
...@@ -519,7 +519,7 @@ function getSupply() { ...@@ -519,7 +519,7 @@ function getSupply() {
<el-col :span="8" col-label>度日数标定值:</el-col> <el-col :span="8" col-label>度日数标定值:</el-col>
<el-col :span="16" col-value> <el-col :span="16" col-value>
<el-form-item prop="degreeStandard" style="margin: 0;padding: 0"> <el-form-item prop="degreeStandard" style="margin: 0;padding: 0">
<el-input maxlength="10" v-model="reviseForm.degreeStandard" placeholder="" <el-input v-float-number maxlength="10" v-model="reviseForm.degreeStandard" placeholder=""
style="width: 290px"/> style="width: 290px"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -605,7 +605,7 @@ function getSupply() { ...@@ -605,7 +605,7 @@ function getSupply() {
<el-col :span="8" col-label>度日数标定值:</el-col> <el-col :span="8" col-label>度日数标定值:</el-col>
<el-col :span="16" col-value> <el-col :span="16" col-value>
<el-form-item prop="degreeStandard" style="margin: 0;padding: 0"> <el-form-item prop="degreeStandard" style="margin: 0;padding: 0">
<el-input maxlength="10" v-model="addForm.degreeStandard" placeholder="" <el-input v-float-number maxlength="10" v-model="addForm.degreeStandard" placeholder=""
style="width: 290px"/> style="width: 290px"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment