文件上传大小限制相关

This commit is contained in:
2025-12-31 15:43:02 +08:00
parent 4f0eeede37
commit 1bb1dba4d6
7 changed files with 24 additions and 18 deletions

View File

@@ -19,7 +19,7 @@
v-for="engineer in availableEngineers"
:key="engineer.userId"
:label="`${engineer.username} (${engineer.statusName || '未知状态'})`"
:value="engineer.userId"
:value="engineer.userId!"
>
<div style="display: flex; justify-content: space-between; align-items: center;">
<span>{{ engineer.username }}</span>
@@ -46,7 +46,7 @@
ref="fileUploadRef"
mode="content"
:max-count="5"
:max-size="10 * 1024 * 1024"
:max-size="FILE_MAX_SIZE"
accept="image/*,.pdf,.doc,.docx,.xls,.xlsx"
:auto-upload="false"
:custom-upload="handleFilesUpload"
@@ -65,12 +65,13 @@
import { ref, computed, watch } from 'vue'
import { ElDialog, ElButton, ElInput, ElSelect, ElOption, ElMessage } from 'element-plus'
import { FileUpload } from 'shared/components'
import { fileAPI } from 'shared/api'
import { fileAPI } from 'shared/api/file'
import { workcaseAPI } from '@/api/workcase'
import { workcaseChatAPI } from '@/api/workcase/workcaseChat'
import type { TbWorkcaseProcessDTO } from '@/types/workcase/workcase'
import type { CustomerServiceVO } from '@/types/workcase/customer'
import type { TbSysFileDTO } from 'shared/types'
import { FILE_MAX_SIZE } from '@/config'
interface Props {
/** 是否显示弹窗 */