祖安之光
6 天以前 4bf7c9a6f3bccbef0dfe24a56362a1a2970e9265
修改新增
已修改1个文件
6 ■■■■ 文件已修改
src/views/build/conpanyFunctionConsult/standardSysTemp/sysStandardModule/components/editDialog.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/build/conpanyFunctionConsult/standardSysTemp/sysStandardModule/components/editDialog.vue
@@ -36,7 +36,7 @@
          <el-upload accept=".doc,.docx,.pdf,.xlsx,.xls" :action="state.uploadUrl" :headers="state.header" method="post" :on-success="(res, uploadFile)=>handleAvatarSuccess(res, uploadFile)" :on-exceed="showTip" :limit='state.fileLimit' v-model:file-list="state.fileList" :before-upload="picSize" :on-remove="(file, uploadFiles)=>handleRemove(file, uploadFiles)" >
            <el-button type="primary">点击上传</el-button>
            <template #tip>
              <div class="el-upload__tip">支持上传.doc、.docx、.pdf、.xlsx、.xls格式文档,尺寸小于30M,最多可上传1份</div>
              <div class="el-upload__tip">支持上传.doc、.docx、.pdf、.xlsx、.xls格式文档,尺寸小于50M,最多可上传1份</div>
            </template>
          </el-upload>
        </el-form-item>
@@ -189,10 +189,10 @@
  });
}
const picSize = async (rawFile) => {
  if(rawFile.size / 1024 / 1024 > 30){
  if(rawFile.size / 1024 / 1024 > 50){
    ElMessage({
      type: 'warning',
      message: '文件大小不能超过30M'
      message: '文件大小不能超过50M'
    });
    return false
  }