diff --git a/pages/workSpace/newWork/addUser.vue b/pages/workSpace/newWork/addUser.vue index b175364..ca89864 100644 --- a/pages/workSpace/newWork/addUser.vue +++ b/pages/workSpace/newWork/addUser.vue @@ -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(){