Commit 87ce331c by 张立顺

fix bug

1 parent 8440ea0f
......@@ -107,7 +107,7 @@ export default {
// from输入框change事件
handleInputChangeFrom(value) {
this.userInputForm = value.replace(/^(100|[1-9]?\d)(\.\d{0,2})?.*$/, '$1$2')
this.userInputForm = value.replace(/[^0-9.]/g, '').replace(/^(100|[1-9]?\d)(\.\d{0,2})?.*$/, '$1$2')
},
handleInputChangeFromChange() {
......@@ -122,7 +122,7 @@ export default {
// to输入框change事件
handleInputChangeTo(value) {
this.userInputTo = value.replace(/^(100|[1-9]?\d)(\.\d{0,2})?.*$/, '$1$2')
this.userInputTo = value.replace(/[^0-9.]/g, '').replace(/^(100|[1-9]?\d)(\.\d{0,2})?.*$/, '$1$2')
},
handleInputChangeToChange() {
// 看一下this.userInputForm 是否有值,如果有应该比它大
......
......@@ -747,7 +747,7 @@ export default {
}
.select {
::v-deep .el-select .el-tag {
max-width: 77%;
max-width: 75%;
}
}
.w-320 {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!