From ce40b8f1942541de09a9dad25983d56a65a3edfc Mon Sep 17 00:00:00 2001 From: shanao Date: Thu, 12 Sep 2024 10:18:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=87=BA=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/accident/records/components/addOrEdit.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/accident/records/components/addOrEdit.vue b/src/views/accident/records/components/addOrEdit.vue index dd7cbac..ff38c7c 100644 --- a/src/views/accident/records/components/addOrEdit.vue +++ b/src/views/accident/records/components/addOrEdit.vue @@ -59,6 +59,7 @@ ref="upload" :disabled="isDisabled" :file-list.sync="fileList" + :src="config.fileUrl + infoForm.photos" :multiple="false" :auto-upload="true" :limit="limitNum" @@ -323,9 +324,10 @@ export default { * 表单确认按钮 */ confirm() { + console.log('ok >>>>' + this.infoForm.photos) const params = { - ...this.infoForm, - photos: this.infoForm.photos[0].remotePathName + ...this.infoForm + // photos: this.infoForm.photos[0].remotePathName } requestFN('/accident' + (this.tableName === '修改' ? '/update' : '/save'), params) .then((response) => {