Browse Source

fit:上传超时时间设置为一分钟 & 督察报告名称获取失败修复

master
pengwei 2 months ago
parent
commit
e34fecc77f
  1. 1
      src/components/file/upload.vue
  2. 6
      src/views/superviseReport/superviseReport.vue

1
src/components/file/upload.vue

@ -4,6 +4,7 @@
:action="`${BASE_PATH}/file/upload`" :action="`${BASE_PATH}/file/upload`"
:headers="{ Authorization: getToken() }" :headers="{ Authorization: getToken() }"
multiple multiple
:timeout="60000"
:drag="uploadDrag" :drag="uploadDrag"
:before-upload="beforeUpload" :before-upload="beforeUpload"
@progress="uploadProgress" @progress="uploadProgress"

6
src/views/superviseReport/superviseReport.vue

@ -124,12 +124,10 @@ const closeAdd =()=>{
} }
watch(()=>editRow.value.files,(val)=>{ watch(()=>editRow.value.files,(val)=>{
console.log(val) console.log(val)
if(val){ if(val && val[0]?.fileName){
console.log(val[0]?.fileName.split(".")[0])
editRow.value.reportName = val[0]?.fileName.split(".")[0] editRow.value.reportName = val[0]?.fileName.split(".")[0]
} }
},{deep:true,immediate:true})
})
</script> </script>

Loading…
Cancel
Save