修复小区背景颜色,巡检点顺序一致,投诉处理按钮

This commit is contained in:
Zy
2026-07-16 11:06:26 +08:00
parent 4efb535730
commit 725bdfa3fe
56 changed files with 1034 additions and 468 deletions

View File

@@ -94,7 +94,7 @@ const rules = ref({
// 登录账号:必填,长度限制,通常建议增加唯一性校验(需后端配合或异步校验)
userName: [
{ required: true, message: '请输入登录账号', trigger: 'blur' },
{ min: 6, max: 16, message: '长度在 6 到 16 个字符', trigger: 'blur' }
{ min: 1, max: 16, message: '长度在 1 到 16 个字符', trigger: 'blur' }
],
// 登录密码:必填,新增时必填,编辑时可选(通常逻辑),这里暂按必填处理,建议长度限制
password: [

View File

@@ -179,6 +179,7 @@
:on-progress="handleFileUploadProgress"
:on-success="handleFileSuccess"
:auto-upload="false"
:on-change="handleChangeFile"
drag
>
<el-icon class="el-icon--upload">
@@ -214,6 +215,7 @@ import { checkPermi } from '@/utils/permission';
import { useUserStore } from '@/store/modules/user';
import { getCommunitylistAPI } from '@/api/system/community';
import { communitylist_rows_type } from '@/api/system/community/type';
import { UploadRawFile } from 'element-plus';
const router = useRouter();
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -464,6 +466,14 @@ const handleFileSuccess = (response: any, file: UploadFile) => {
});
getList();
};
const forbidSuffix = ['exe', 'msi', 'bat', 'cmd', 'sh', 'apk', 'dmg', 'zip', 'rar', '7z', 'tar', 'gz'];
const handleChangeFile = (uploadFile: UploadFile) => {
const type = uploadFile.raw.name.split('.')[1];
if (forbidSuffix.includes(type)) {
ElMessage.warning('不允许上传exe、安装包等文件');
return;
}
};
/** 提交上传文件 */
function submitFileForm() {