物业之前,新工作台

This commit is contained in:
Zy
2026-04-16 21:03:35 +08:00
parent cf9a1f1585
commit 4184f1c55d
91 changed files with 1781 additions and 588 deletions

View File

@@ -115,12 +115,10 @@ async function init() {
...form.value,
...res.data
};
console.log(form.value);
const find = res2.rows.find((item) => item.id === form.value.typeId);
if (find) {
form.value.type = find.name;
}
console.log(form.value);
});
}
@@ -140,6 +138,7 @@ const formRef = ref();
const submitForm = () => {
formRef.value?.validate(async (valid: boolean) => {
if (valid) {
form.value.villageId = Number(localStorage.getItem('villageid'));
if (userid.value) {
updateComplaint(form.value).then(() => {
ElMessage.success('编辑成功');
@@ -165,6 +164,7 @@ function handleBack() {
.ResidentMainBody {
margin-top: 20px;
flex: 1;
font-size: 14px;
.CarinfoBox {
display: grid;

View File

@@ -25,15 +25,16 @@
<el-card class="flex-1" shadow="never">
<el-table v-loading="loading" border :data="complaintList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="投诉类型" align="center" prop="typeId" />
<el-table-column label="投诉类型" align="center" prop="typeName" />
<el-table-column label="问题描述" align="center" prop="problemDes" />
<el-table-column label="投诉人姓名" align="center" prop="complaintName" />
<el-table-column label="手机号" align="center" prop="phone" />
<el-table-column label="投诉时间" align="center" prop="createTime" />
<el-table-column label="投诉状态" align="center" prop="status">
<template #default="scope">
<dict-tag :options="com_complaint_status" :value="scope.row.status"></dict-tag>
</template>
</el-table-column>
<el-table-column label="问题描述" align="center" prop="problemDes" />
<el-table-column label="投诉人姓名" align="center" prop="complaintName" />
<el-table-column label="手机号" align="center" prop="phone" />
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link type="primary" @click="handleUpdate(scope.row)" v-hasPermi="['complaint:complaint:edit']">查看详情</el-button>
@@ -86,6 +87,7 @@ const initFormData: ComplaintForm = {
const data = reactive<PageData<ComplaintForm, ComplaintQuery>>({
form: { ...initFormData },
queryParams: {
villageId: Number(localStorage.getItem('villageid')),
pageNum: 1,
pageSize: 10,
typeId: undefined,