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)