feat: 更新系统名称为MOM/BOM分类分组展示/上传组件增强(删除确认+压缩包150MB)
This commit is contained in:
@ -234,7 +234,7 @@ const handleLogout = () => {
|
|||||||
<footer v-if="!isLoginPage" class="app-footer">
|
<footer v-if="!isLoginPage" class="app-footer">
|
||||||
<span class="version-tag">
|
<span class="version-tag">
|
||||||
<el-icon style="vertical-align: middle; margin-right: 4px"><InfoFilled /></el-icon>
|
<el-icon style="vertical-align: middle; margin-right: 4px"><InfoFilled /></el-icon>
|
||||||
当前版本:V3.17(4.29部署)
|
当前版本:V3.18(4.29部署)
|
||||||
</span>
|
</span>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|||||||
@ -616,7 +616,7 @@ const fetchBomList = async () => {
|
|||||||
const res = await getBomList({ keyword: searchKeyword.value })
|
const res = await getBomList({ keyword: searchKeyword.value })
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
bomGroups.value = res.data
|
bomGroups.value = res.data
|
||||||
activeCategories.value = res.data.map((g: any) => g.category)
|
activeCategories.value = []
|
||||||
}
|
}
|
||||||
} finally { loading.value = false }
|
} finally { loading.value = false }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1566,7 +1566,7 @@ const beforeAvatarUpload = (rawFile: any) => {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const isCompressed = ['application/zip', 'application/x-zip-compressed', 'application/x-rar-compressed', 'application/vnd.rar', 'application/x-7z-compressed'].includes(rawFile.type);
|
const isCompressed = ['application/zip', 'application/x-zip-compressed', 'application/x-rar-compressed', 'application/vnd.rar', 'application/x-7z-compressed'].includes(rawFile.type);
|
||||||
const maxMB = isCompressed ? 50 : 10;
|
const maxMB = 150;
|
||||||
if (rawFile.size / 1024 / 1024 > maxMB) {
|
if (rawFile.size / 1024 / 1024 > maxMB) {
|
||||||
ElMessage.error(`文件不能超过 ${maxMB}MB`);
|
ElMessage.error(`文件不能超过 ${maxMB}MB`);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user