浏览代码

feat(regis):update

gemercheung 1 年之前
父节点
当前提交
febae379ef
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/view/organization-add.vue

+ 4 - 4
src/view/organization-add.vue

@@ -11,7 +11,7 @@
   <el-form label-width="100px" :model="data" :rules="rules" ref="baseFormRef">
   <el-form label-width="100px" :model="data" :rules="rules" ref="baseFormRef">
     <el-form-item label="单位名称" prop="orgName" required>
     <el-form-item label="单位名称" prop="orgName" required>
       <el-input
       <el-input
-        v-model="data.orgName"
+        v-model.trim="data.orgName"
         style="width: 300px"
         style="width: 300px"
         :maxlength="50"
         :maxlength="50"
         placeholder="请输入"
         placeholder="请输入"
@@ -45,7 +45,7 @@
     </el-form-item>
     </el-form-item>
     <el-form-item label="联系人" prop="contact" required>
     <el-form-item label="联系人" prop="contact" required>
       <el-input
       <el-input
-        v-model="data.contact"
+        v-model.trim="data.contact"
         style="width: 300px"
         style="width: 300px"
         :maxlength="50"
         :maxlength="50"
         placeholder="请输入"
         placeholder="请输入"
@@ -53,7 +53,7 @@
     </el-form-item>
     </el-form-item>
     <el-form-item label="账号" prop="userName" required>
     <el-form-item label="账号" prop="userName" required>
       <el-input
       <el-input
-        v-model="data.userName"
+        v-model.trim="data.userName"
         style="width: 300px"
         style="width: 300px"
         :maxlength="11"
         :maxlength="11"
         placeholder="请输入手机号"
         placeholder="请输入手机号"
@@ -64,7 +64,7 @@
         autocomplete="off"
         autocomplete="off"
         readonly
         readonly
         onfocus="this.removeAttribute('readonly');"
         onfocus="this.removeAttribute('readonly');"
-        v-model="data.password"
+        v-model.trim="data.password"
         :type="addPassFlag ? 'text' : 'password'"
         :type="addPassFlag ? 'text' : 'password'"
         style="width: 300px"
         style="width: 300px"
         :maxlength="500"
         :maxlength="500"