fix:曲阳App访客库编辑时照片展示

This commit is contained in:
shijing 2024-11-20 12:42:45 +08:00
parent a8703aad86
commit 6d6410165d
1 changed files with 17 additions and 5 deletions

View File

@ -79,15 +79,27 @@
this.upHeader = {Authorization: "Bearer " + this.vuex_token}
},
getRemployee(){
this.$u.api.remployeeDetail(this.formData.id).then(res=>{
this.formData = res
this.fileList = [this.vuex_host+res.photo]
let that = this;
that.$u.api.remployeeDetail(that.formData.id).then(res=>{
that.formData = res;
let obj = {
url: that.vuex_host+res.photo,
id:res.id,
};
that.fileList.push(obj)
// that.fileList = [that.vuex_host+res.photo]
})
},
getVisitor(){
let that = this;
this.$u.api.visitorDetail(this.formData.id).then(res=>{
this.formData = res
this.fileList = [this.vuex_host+res.photo]
this.formData = res;
let obj = {
url: that.vuex_host+res.photo,
id:res.id,
};
that.fileList.push(obj)
// this.fileList = [this.vuex_host+res.photo];
})
},
saveVisitor(){