|
@@ -76,8 +76,10 @@
|
|
|
<el-form-item label="预警课酬(元)"
|
|
|
prop="money"
|
|
|
:label-width="formLabelWidth">
|
|
|
+ <!-- <el-input-number v-model="form.money" controls-position="right" style="width: 100%;" :precision='2' :min="1" :max="10"></el-input-number> -->
|
|
|
<el-input v-model.trim="form.money"
|
|
|
type="number"
|
|
|
+ @input="checkNumber(form.money)"
|
|
|
placeholder="请输入预警课酬"
|
|
|
autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
@@ -134,6 +136,10 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ //方法一:
|
|
|
+ checkNumber(withdrawAmount){
|
|
|
+ this.form.money= (withdrawAmount.match(/^\d*(\.?\d{0,2})/g)[0]) || null
|
|
|
+ },
|
|
|
onTypesSubmit (formName) { // 添加数据
|
|
|
this.$refs[formName].validate(async (valid) => {
|
|
|
if (valid) {
|