8/19 账单-时间类型-自然/滚动

This commit is contained in:
Zy
2026-08-19 09:27:48 +08:00
parent 3fa96351d7
commit 406cf90db5
29 changed files with 442 additions and 120 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╬
// != ==========================================8
async function init() {
form.value = {