|
|
@ -65,6 +65,7 @@ export default { |
|
|
|
this.ruleForm[val] = e.replace(/[\W]/g, ""); |
|
|
|
}, |
|
|
|
handleInput(val, e) { |
|
|
|
console.log("val, e >>>>> ", val, e); |
|
|
|
this.ruleForm[val] = e.replace(/\D/g, ""); |
|
|
|
}, |
|
|
|
submitForm(callback) { |
|
|
@ -158,42 +159,30 @@ export default { |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item |
|
|
|
label-width="120px" |
|
|
|
label="上游水位" |
|
|
|
prop="upstream" |
|
|
|
@input="(e) => handleInput('upstreamLevel', e)" |
|
|
|
> |
|
|
|
<el-form-item label-width="120px" label="上游水位" prop="upstream"> |
|
|
|
<el-input |
|
|
|
style="width: 202px" |
|
|
|
v-model="ruleForm.upstreamLevel" |
|
|
|
@input="(e) => handleInput('upstreamLevel', e)" |
|
|
|
maxlength="50" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item |
|
|
|
label-width="120px" |
|
|
|
label="下游水位" |
|
|
|
prop="downstream" |
|
|
|
@input="(e) => handleInput('downstreamLevel', e)" |
|
|
|
> |
|
|
|
<el-form-item label-width="120px" label="下游水位" prop="downstream"> |
|
|
|
<el-input |
|
|
|
style="width: 202px" |
|
|
|
@input="(e) => handleInput('downstreamLevel', e)" |
|
|
|
v-model="ruleForm.downstreamLevel" |
|
|
|
maxlength="50" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item |
|
|
|
label-width="120px" |
|
|
|
label="开度" |
|
|
|
prop="opening" |
|
|
|
@input="(e) => handleInput('opening', e)" |
|
|
|
> |
|
|
|
<el-form-item label-width="120px" label="开度" prop="opening"> |
|
|
|
<el-input |
|
|
|
style="width: 202px" |
|
|
|
@input="(e) => handleInput('opening', e)" |
|
|
|
v-model="ruleForm.opening" |
|
|
|
maxlength="50" |
|
|
|
></el-input> |
|
|
|