zhouwx
2024-06-13 c1194414df9e35e8d15e59855d148ca193b1e3c9
src/views/safetyReview/projectSupplement/components/supplemenrtDialog.vue
@@ -269,6 +269,14 @@
}
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',
@@ -278,6 +286,7 @@
  }
};
const handleRemove = async (file, uploadFiles) => {
  if (file && file.status === 'success') {
  ElMessageBox.confirm(
      '确定删除该附件?',
      '提示',
@@ -310,6 +319,7 @@
      .catch(()=>{
      })
}
}
const handlePreview = (file) => {
  let path = "";
  if(file.path){