Commit 795b3025 authored by anxixi's avatar anxixi

项目联系人图片修改

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