ct 2 nedēļas atpakaļ
vecāks
revīzija
7c79fcc3d3
1 mainītis faili ar 3 papildinājumiem un 42 dzēšanām
  1. 3 42
      src/views/qw/externalContact/myExternalContact.vue

+ 3 - 42
src/views/qw/externalContact/myExternalContact.vue

@@ -989,15 +989,6 @@
 	  <info  ref="Details" />
 	</el-drawer>
     <el-dialog :title="user.title" :visible.sync="user.open" width="800px" append-to-body>
-      <el-form ref="bindForm" :model="bindForm" :rules="bindRules" label-width="100px">
-        <el-form-item label="手机号" prop="phone">
-          <el-input v-model="bindForm.phone" placeholder="请输入手机号" style="width: 220px; margin-right: 10px;"></el-input>
-          <el-button @click="sendCode">发送验证码</el-button>
-        </el-form-item>
-        <el-form-item label="验证码" prop="code">
-          <el-input v-model="bindForm.code" placeholder="请输入验证码" style="width: 220px;"></el-input>
-        </el-form-item>
-      </el-form>
       <selectUser ref="selectUser" @bindMiniCustomerId="bindMiniCustomerId"></selectUser>
     </el-dialog>
     <el-dialog :title="collection.title" :visible.sync="collection.open"   width="1100px" append-to-body>
@@ -1293,19 +1284,6 @@ export default {
       // 表单校验
       rules: {
       },
-      bindForm: {
-        phone: '',
-        code: ''
-      },
-      bindRules: {
-        phone: [
-          { required: true, message: '请输入手机号', trigger: 'blur' },
-          { pattern: /^1[3-9]\d{9}$/, message: '请输入正确的手机号', trigger: 'blur' }
-        ],
-        code: [
-          { required: true, message: '请输入验证码', trigger: 'blur' }
-        ]
-      },
       fsUserId: null,
     };
   },
@@ -1778,8 +1756,6 @@ export default {
     bindMiniCustomerId(row){
 
       this.userForm.fsUserId=row;
-      this.userForm.phone = this.bindForm.phone;
-      this.userForm.code = this.bindForm.code;
       bindUserId(this.userForm).then(res=>{
          if (res.code==200){
            this.$message.success('绑定成功')
@@ -2146,15 +2122,9 @@ export default {
     },
 
     handleUpdateUser(row){
-        this.$refs.bindForm.validate(valid => {
-          if (valid) {
-            this.user.title="绑定客户"
-            this.user.open=true;
-            this.userForm.id=row.id;
-          } else {
-            return false;
-          }
-        });
+      this.user.title="绑定客户"
+      this.user.open=true;
+      this.userForm.id=row.id;
     },
 
     handleUnBindUserId(val){
@@ -2178,15 +2148,6 @@ export default {
       })
     },
 
-    sendCode() {
-      this.$refs.bindForm.validateField('phone', (valid) => {
-        if (valid) {
-          this.$message.success('验证码已发送');
-        } else {
-          return false;
-        }
-      });
-    },
 
     bindCustomerId(row){