| | |
| | | } |
| | | |
| | | const handleRemove = async (file, uploadFiles) => { |
| | | if (file && file.status === 'success') { |
| | | ElMessageBox.confirm( |
| | | '确定删除该附件?', |
| | | '提示', |
| | |
| | | getProcessFiles() |
| | | }) |
| | | } |
| | | } |
| | | |
| | | defineExpose({ |
| | | riskOpen |
| | |
| | | } |
| | | |
| | | const picSize = async (rawFile) => { |
| | | console.log("111",rawFile.name.length) |
| | | if(rawFile.name.length >100){ |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: '文件名不能超过100字' |
| | | }); |
| | | return false |
| | | } |
| | | if(rawFile.size / 1024 / 1024 > 15){ |
| | | ElMessage({ |
| | | type: 'warning', |
| | |
| | | } |
| | | }; |
| | | const handleRemove = async (file, uploadFiles) => { |
| | | if (file && file.status === 'success') { |
| | | ElMessageBox.confirm( |
| | | '确定删除该附件?', |
| | | '提示', |
| | |
| | | .catch(()=>{ |
| | | }) |
| | | } |
| | | } |
| | | const handlePreview = (file) => { |
| | | let path = ""; |
| | | if(file.path){ |