给序列号录入界面增加特殊字符的过滤

This commit is contained in:
季圣华 2023-06-04 18:32:13 +08:00
parent b308c8182e
commit c91c1fc501

View File

@ -17,7 +17,8 @@
<a-row :gutter="24">
<a-col :md="24" :sm="24">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="序列号">
<a-input ref="name" style="width:400px;" placeholder="请输入序列号并回车" v-model="queryParam.name"></a-input>
<a-input ref="name" style="width:400px;" placeholder="请输入序列号并回车(只能输入数字或字母)"
oninput="value=value.replace(/[\W]/g,'')" v-model="queryParam.name"></a-input>
<div style="float:left;">
<a-button type="primary" @click="onAdd">添加</a-button>
<a-button style="margin-left: 8px" @click="clearAllSn">清空</a-button>