Commit 02909ffd by 王悦

输入完自动校验

parent 44a406e8
......@@ -25,7 +25,7 @@
</el-form-item>
<div style="clear:both;"></div>
<el-form-item label="商标名称" style="width:450px;float:left" prop="tmName">
<el-input v-model="form.tmName"></el-input>
<el-input v-model="form.tmName" @blur="nameBlur"></el-input>
</el-form-item>
<div style="float:left;padding-left:10px">
<el-button @click="checkname">检查名称</el-button>
......
......@@ -811,6 +811,10 @@
});
},
nameBlur()
{
this.checkname()
},
checkname()
{
if (!this.form.tmName) {
......
......@@ -24,7 +24,7 @@
</el-form-item>
<div style="clear:both;"></div>
<el-form-item label="商标名称" style="width:450px;float:left" prop="tmName">
<el-input v-model="form.tmName"></el-input>
<el-input v-model="form.tmName" @blur="nameBlur"></el-input>
</el-form-item>
<div style="float:left;padding-left:10px">
<el-button @click="checkname">检查名称</el-button>
......
......@@ -739,6 +739,10 @@
});
},
nameBlur()
{
this.checkname()
},
checkname()
{
if (!this.form.tmName) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment