Commit 87ce331c by 张立顺

fix bug

1 parent 8440ea0f
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
// from输入框change事件 // from输入框change事件
handleInputChangeFrom(value) { 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() { handleInputChangeFromChange() {
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
// to输入框change事件 // to输入框change事件
handleInputChangeTo(value) { 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() { handleInputChangeToChange() {
// 看一下this.userInputForm 是否有值,如果有应该比它大 // 看一下this.userInputForm 是否有值,如果有应该比它大
......
...@@ -747,7 +747,7 @@ export default { ...@@ -747,7 +747,7 @@ export default {
} }
.select { .select {
::v-deep .el-select .el-tag { ::v-deep .el-select .el-tag {
max-width: 77%; max-width: 75%;
} }
} }
.w-320 { .w-320 {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!