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

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

@@ -36,7 +36,7 @@
</div> -->
<!-- <div class="userinfo_item">
<div class="title_item">注册时间:</div>
<span> {{ userInfo.name }} </span>
<span> {{ userInfo.name }} </span>╬6╬╬222╬▐
</div> -->
<div class="userinfo_item img">
<div class="title_item">身份证正面:</div>
@@ -154,9 +154,10 @@ const userInfo = ref<ResidentVO>({
buildingId: '',
userId: null,
nickName: '',
unitNoId: '',
'id': null,
'name': '',
'type': null,
'type': '0',
'gender': null,
'status': null,
'idCard': '',
@@ -192,7 +193,7 @@ if (route.query.id) {
getresidentReviewlistAPI(userid.value).then((res) => {
if (res.rows[0]) {
reviewInfo.value = res.rows[0];
handleActivestaus(reviewInfo.value);
handleActiveStaus(reviewInfo.value);
}
});
});
@@ -202,7 +203,7 @@ const getReviewStatusLabel = (status: string) => {
const item = com_review.value?.find((i: any) => i.value === status);
return item ? item.label : '未知状态';
};
function handleActivestaus(rews) {
function handleActiveStaus(rews) {
// 提交状态 0未提交 1已提交
if (rews.submitStatus === '0') {
active.value = 0;
@@ -262,7 +263,7 @@ function updatePass(val: '0' | '1' | '2') {
}
function update() {
UpdateResidentReviewAPI(reviewInfo.value).then((res) => {
UpdateResidentReviewAPI(reviewInfo.value).then(() => {
backRoute();
});
}

View File

@@ -62,6 +62,7 @@
:on-success="handleAvatarSuccess"
:on-exceed="handleExceed"
:on-error="handleError"
:before-upload="handleBeforUpload"
:limit="1"
>
<img alt="身份证正面照" v-if="form.cardImageFront" :src="form.cardImageFront" class="avatar" />
@@ -81,6 +82,7 @@
:on-exceed="handleExceed2"
:on-success="handleAvatar2Success"
:on-error="handleError2"
:before-upload="handleBeforUpload"
>
<img alt="身份证背面照" v-if="form.cardImageBack" :src="form.cardImageBack" class="avatar" />
<el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
@@ -228,6 +230,15 @@ const handleError: UploadProps['onError'] = (error: Error, uploadFile: UploadFil
const handleError2: UploadProps['onError'] = (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => {
console.log(error);
};
const blockedExts = ['.exe', '.bat', '.cmd', '.msi'];
const handleBeforUpload = (uploadFile: UploadRawFile) => {
const ext = uploadFile.name.toLowerCase().slice(uploadFile.name.lastIndexOf('.'));
if (blockedExts.includes(ext)) {
ElMessage.warning(`禁止上传 ${ext} 文件`);
return false;
}
return true;
};
// !== 提交 =============================================================================
// 提交