@@ -17,7 +17,7 @@
:placeholder="$t('Key561')"
v-model="discountNumber"
type="number"
- oninput="value=value.replace(/[^0-9]/g,'')"
+ :oninput="numberInput"
></el-input>
</el-form-item>
<el-button
@@ -196,6 +196,9 @@ export default {
this.getList();
},
methods: {
+ numberInput() {
+ this.discountNumber = this.discountNumber.replace(/[^0-9]/g, "");
+ },
// 切换每页条数
handleSizeChange(val) {
this.currentPage = 1;