From 8c435fa7e3c3c37fe00bc4f16b027cf9ca0178ba Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Thu, 9 May 2024 16:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Detail/src/DetailDeviceLedger.vue | 4 ++-- src/components/UploadFile/src/UploadFile.vue | 15 ++++++--------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/components/Detail/src/DetailDeviceLedger.vue b/src/components/Detail/src/DetailDeviceLedger.vue index 9420508..18a2490 100644 --- a/src/components/Detail/src/DetailDeviceLedger.vue +++ b/src/components/Detail/src/DetailDeviceLedger.vue @@ -984,8 +984,8 @@ const getDialogUpload = (row) => { function dialogUploadFile() { let data = { number: dialogUploadNumber.value, - filePathList: fileDialogUploadData.value.filePathList.map((item) => item.url), - fileInfoList: fileDialogUploadData.value.filePathList, + filePathList: fileDialogUploadData.value.filePathList?fileDialogUploadData.value.filePathList.map((item) => item.url):null, + fileInfoList: fileDialogUploadData.value.filePathList?fileDialogUploadData.value.filePathList:[], funcCode: props.milestoneFuncCode, fileBusiType: dialogUploadBusiCode.value } diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue index 32149a4..bcff084 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -145,15 +145,12 @@ const excelUploadError: UploadProps['onError'] = (): void => { } // 删除上传文件 const handleRemove = (file) => { - debugger - console.log(fileList.value) - console.log(file.name) - const findex = fileList.value.map((f) => f.name).indexOf(file.name) - console.log(findex) - if (findex > -1) { - fileList.value.splice(findex, 1) - emit('update:modelValue', listToString(fileList.value)) - } + // const findex = fileList.value.map((f) => f.name).indexOf(file.name) + // console.log(findex) + // if (findex > -1) { + // fileList.value.splice(findex, 1) + // emit('update:modelValue', listToString(fileList.value)) + // } } const handlePreview: UploadProps['onPreview'] = (uploadFile) => { console.log(uploadFile)