8/19 账单-时间类型-自然/滚动
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ function handleChange(val: string) {
|
||||
form.value.projectType = find.projectType;
|
||||
}
|
||||
}
|
||||
// != ==========================================8╬
|
||||
// != ==========================================8
|
||||
|
||||
async function init() {
|
||||
form.value = {
|
||||
|
||||
Reference in New Issue
Block a user