|
|
@@ -14,22 +14,22 @@
|
|
|
<el-form :model="form" :rules="rules" ref="form" size="small" label-position="right" :label-width="tool.onlyZh('110px')">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t(`账号`)" prop="accountno">
|
|
|
- <el-input v-model="form.accountno" readonly autocomplete="off" :placeholder="$t(`账号`)"></el-input>
|
|
|
+ <el-input v-model="form.accountno" readonly autocomplete="off" :placeholder="$t(`账号`)" @blur="handleTrim(form, 'accountno')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t(`手机号码`)" prop="phonenumber">
|
|
|
- <el-input v-model="form.phonenumber" autocomplete="off" :placeholder="$t(`请输入手机号码`)"></el-input>
|
|
|
+ <el-input v-model="form.phonenumber" autocomplete="off" :placeholder="$t(`请输入手机号码`)" @blur="handleTrim(form, 'phonenumber')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t(`用户类型`)" prop="usertypename">
|
|
|
- <el-input v-model="form.usertypename" readonly autocomplete="off" :placeholder="$t(`用户类型`)"></el-input>
|
|
|
+ <el-input v-model="form.usertypename" readonly autocomplete="off" :placeholder="$t(`用户类型`)" ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t(`用户名称`)" prop="name">
|
|
|
- <el-input v-model="form.name" autocomplete="off" :placeholder="$t(`用户名称`)"></el-input>
|
|
|
+ <el-input v-model="form.name" autocomplete="off" :placeholder="$t(`用户名称`)" @blur="handleTrim(form, 'name')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
@@ -113,7 +113,11 @@ export default {
|
|
|
this.rolelist()
|
|
|
console.log(this.data,this.form)
|
|
|
},
|
|
|
-
|
|
|
+ handleTrim(obj, key) {
|
|
|
+ if (obj[key] && typeof obj[key] === 'string') {
|
|
|
+ obj[key] = obj[key].trim();
|
|
|
+ }
|
|
|
+ },
|
|
|
async rolelist () {
|
|
|
let param = {
|
|
|
"classname": "sysmanage.develop.optiontype.optiontype",
|