@@ -432,7 +433,8 @@
AddInvitationAnswerMultiple,
AddInvitationCompanyMultiple,
UsersDelete,
- ChangeTags
+ ChangeTags,
+ SelectPhoneBool
} from "@/api/user";
import {
GetUserClassList,
@@ -692,10 +694,17 @@
let formData = { ...this.adminUserInfo };
console.log('submitForm', JSON.stringify(formData));
if (formData.id) {
- UsersUpdate(formData).then((res) => {
- this.GetUser();
- console.log(res);
- });
+
+ SelectPhoneBool(formData.id,formData.phone).then(res=>{
+ if(res.data==true){
+ this.$message.error("电话号码已存在!");
+ }else{
+ UsersUpdate(formData).then((res) => {
+ this.GetUser();
+ console.log(res);
+ });
+ }
+ });
}
this.dialogClassIVIsible = false;
},
@@ -932,9 +941,9 @@
width: 100%;
padding-top: 10px;
padding-left: 10px;
- /* height: 60px; */
+ height: 126px;
background: #efefef;
- /* line-height: 60px; */
+ line-height: initial !important;
border-radius: 5px;
box-shadow: 0 0 5px #cdcdcd;
justify-content: space-between;