Merge branch 'dev' into report

# Conflicts:
#	src/views/system/Repair/addRepairlist.vue
#	src/views/system/resident/addResident.vue
#	src/views/system/statistics/Personnel/index.vue
#	src/views/system/user/addUser.vue
This commit is contained in:
Zy
2026-08-20 17:06:42 +08:00
24 changed files with 444 additions and 117 deletions

View File

@@ -204,13 +204,18 @@ const dialogVisible = ref(false);
const handleRemove: UploadProps['onRemove'] = (uploadFile, uploadFiles) => {
console.log(uploadFile, uploadFiles);
};
const blockedExts = ['.exe', '.bat', '.cmd', '.msi'];
const blockedExits = ['.exe', '.bat', '.cmd', '.msi'];
const allUploadExits = ['.jpg', '.jpeg', '.png', '.gif', '.bmp'];
const handleChangeFile: UploadProps['beforeUpload'] = (rawFile: UploadRawFile) => {
const ext = rawFile.name.toLowerCase().slice(rawFile.name.lastIndexOf('.'));
if (blockedExts.includes(ext)) {
if (blockedExits.includes(ext)) {
ElMessage.warning(`禁止上传 ${ext} 文件`);
return false;
}
if (!allUploadExits.includes(ext)) {
ElMessage.warning(`请上传 图片格式 文件`);
return false;
}
return true;
};

View File

@@ -95,7 +95,7 @@ function handleChange(val: string) {
form.value.projectType = find.projectType;
}
}
// != ==========================================
// != ==========================================8
async function init() {
form.value = {