From 6d6410165d9326e2d4f35e23b0c1d25ebed19236 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 20 Nov 2024 12:42:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=9B=B2=E9=98=B3App=E8=AE=BF=E5=AE=A2?= =?UTF-8?q?=E5=BA=93=E7=BC=96=E8=BE=91=E6=97=B6=E7=85=A7=E7=89=87=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/workSpace/newWork/addUser.vue | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) 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(){