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

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

@@ -216,7 +216,7 @@ function headerToken() {
Authorization: 'Bearer ' + useStore.token
};
}
const allowImgSuffix = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'heic'];
/** 检测文件大小和格式 */
function handleBeforeUpload(file: UploadFile): Promise<boolean | { file: UploadFile; type: string }> {
return new Promise((resolve, reject) => {
@@ -226,7 +226,7 @@ function handleBeforeUpload(file: UploadFile): Promise<boolean | { file: UploadF
type: '文件大小错误',
file: file
});
} else if (file.raw.type !== 'image/jpeg' && file.raw.type !== 'image/png') {
} else if (!allowImgSuffix.includes(file.raw.type)) {
reject({
type: '文件类型错误',
file: file
@@ -355,7 +355,7 @@ const cancelForm = () => {
<style scoped lang="scss">
.box {
background: linear-gradient(180deg, #deedff 0%, #f8f9fe 50%);
background: #deedff;
.header {
display: flex;
align-items: center;