|
@@ -262,12 +262,12 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="事件当前伤亡" prop="contingencyDetail.eventCasualties" style="width: 350px;height: 40px;">
|
|
|
- <el-input v-model="ruleForm.contingencyDetail.eventCasualties" type="number">
|
|
|
+ <el-input v-model="ruleForm.contingencyDetail.eventCasualties" @input="handleInput1">
|
|
|
<template #prepend></template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="事件预警影响" prop="contingencyDetail.eventEarlyWarning" style="width: 350px;height: 40px;">
|
|
|
- <el-input v-model="ruleForm.contingencyDetail.eventEarlyWarning" type="number">
|
|
|
+ <el-form-item label="预警影响人数" prop="contingencyDetail.eventEarlyWarning" style="width: 350px;height: 40px;">
|
|
|
+ <el-input v-model="ruleForm.contingencyDetail.eventEarlyWarning" @input="handleInput">
|
|
|
<template #prepend></template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
@@ -490,6 +490,12 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleInput(val){
|
|
|
+ this.ruleForm.contingencyDetail.eventEarlyWarning = val.replace(/[^0-9]/g, '')
|
|
|
+ },
|
|
|
+ handleInput1(val){
|
|
|
+ this.ruleForm.contingencyDetail.eventCasualties = val.replace(/[^0-9]/g, '')
|
|
|
+ },
|
|
|
handleNodeClick(data, self, child) {
|
|
|
console.log('this.ruleForm.deptList',this.ruleForm)
|
|
|
this.ruleForm.deptList.push({
|