Commit 795b3025 authored by anxixi's avatar anxixi

项目联系人图片修改

parent 8563c618
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
companyEmail:'', companyEmail:'',
empDeptName:'', empDeptName:'',
empPosition:'', empPosition:'',
empCardUrl:'', empCardUrl:null,
account:"", account:"",
}, },
fileList:[],//上传存放路径 fileList:[],//上传存放路径
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
handleRemove(){ handleRemove(){
this.fileList = []; this.fileList = [];
this.imagesIf = false; this.imagesIf = false;
this.formData.empCardUrl = ''; this.formData.empCardUrl = null;
}, },
//上传文件成功回调 //上传文件成功回调
uploadComplete(res,file){ uploadComplete(res,file){
...@@ -192,8 +192,12 @@ ...@@ -192,8 +192,12 @@
this.formData.empPosition = response.result.empPosition; this.formData.empPosition = response.result.empPosition;
this.formData.companyEmail = response.result.companyEmail; this.formData.companyEmail = response.result.companyEmail;
this.formData.empCardUrl = response.result.empCardUrl; this.formData.empCardUrl = response.result.empCardUrl;
if(response.result.empCardUrl){
this.fileList = [{url:this.formData.empCardUrl}]; this.fileList = [{url:this.formData.empCardUrl}];
this.imagesIf = true; this.imagesIf = true;
}else{
this.fileList = [];
}
}else if(response.result.accountState == 0){ }else if(response.result.accountState == 0){
this.checkif = false; this.checkif = false;
this.formData.empName = response.result.empName; this.formData.empName = response.result.empName;
...@@ -201,8 +205,12 @@ ...@@ -201,8 +205,12 @@
this.formData.empPosition = response.result.empPosition; this.formData.empPosition = response.result.empPosition;
this.formData.companyEmail = response.result.companyEmail; this.formData.companyEmail = response.result.companyEmail;
this.formData.empCardUrl = response.result.empCardUrl; this.formData.empCardUrl = response.result.empCardUrl;
if(response.result.empCardUrl){
this.fileList = [{url:this.formData.empCardUrl}]; this.fileList = [{url:this.formData.empCardUrl}];
this.imagesIf = true; this.imagesIf = true;
}else{
this.fileList = [];
}
} }
console.log(this.formData.empName) console.log(this.formData.empName)
} else { } else {
...@@ -348,8 +356,12 @@ ...@@ -348,8 +356,12 @@
this.formData.empPosition = response.result.empPosition; this.formData.empPosition = response.result.empPosition;
this.formData.companyEmail = response.result.companyEmail; this.formData.companyEmail = response.result.companyEmail;
this.formData.empCardUrl = response.result.empCardUrl; this.formData.empCardUrl = response.result.empCardUrl;
if(response.result.empCardUrl){
this.fileList = [{url:this.formData.empCardUrl}]; this.fileList = [{url:this.formData.empCardUrl}];
this.imagesIf = true; this.imagesIf = true;
}else{
this.fileList = [];
}
}else if(response.result.accountState == 0){ }else if(response.result.accountState == 0){
this.checkif = false; this.checkif = false;
this.formData.empName = response.result.empName; this.formData.empName = response.result.empName;
...@@ -357,8 +369,12 @@ ...@@ -357,8 +369,12 @@
this.formData.empPosition = response.result.empPosition; this.formData.empPosition = response.result.empPosition;
this.formData.companyEmail = response.result.companyEmail; this.formData.companyEmail = response.result.companyEmail;
this.formData.empCardUrl = response.result.empCardUrl; this.formData.empCardUrl = response.result.empCardUrl;
if(response.result.empCardUrl){
this.fileList = [{url:this.formData.empCardUrl}]; this.fileList = [{url:this.formData.empCardUrl}];
this.imagesIf = true; this.imagesIf = true;
}else{
this.fileList = [];
}
} }
} else { } else {
this.$message.error(response.msg); this.$message.error(response.msg);
......
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