优化
This commit is contained in:
parent
0273196aaf
commit
07f4c8c64a
@ -79,6 +79,7 @@ export function departGetForm (arr = []) {
|
||||
|
||||
export function handleInput (form) {
|
||||
let value = this[form.split('.')[0]][form.split('.')[1]]
|
||||
value = String(value)
|
||||
if (value.split('.').length > 2) value = String(parseFloat(value))
|
||||
this[form.split('.')[0]][form.split('.')[1]] = Number(value) > 100 ? 0 : value.replace(/[^.\d]/g, '')
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user