公告,活动,投诉接口对接完成

This commit is contained in:
Zy
2026-04-14 17:34:33 +08:00
parent 2701b02c59
commit 40f13be704
41 changed files with 2499 additions and 220 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="ResidentMainBox p-2 w-full">
<PageHeader title="投诉类型"></PageHeader>
<PageHeader title="活动"></PageHeader>
<div class="ResidentMainBody">
<el-card>
<template #header>
@@ -9,14 +9,26 @@
<div class="addBuildingFormBody">
<div class="formbox">
<el-form ref="formRef" :model="form" :rules="rules" label-width="120px">
<el-form-item label="投诉类型名称" prop="name">
<el-input v-model.trim="form.name" placeholder="请输入投诉类型名称" />
</el-form-item>
<el-form-item label="投诉类型状态" prop="status">
<el-radio-group v-model="form.status">
<el-radio v-for="(item, index) in com_repair_project_status" :key="index" :value="item.value">{{ item.label }}</el-radio>
</el-radio-group>
</el-form-item>
<el-row>
<el-col :span="12">
<el-form-item label="活动标题" prop="titile">
<el-input v-model.trim="form.titile" placeholder="请输入活动标题" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="作者" prop="author">
<el-input v-model.trim="form.author" placeholder="请输入作者" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col>
<el-form-item label="活动详情" prop="content">
<editor v-model="form.content" :height="500" :min-height="300" :read-only="false" :file-size="5" :type="'url'" />
</el-form-item>
</el-col>
</el-row>
<el-form-item>
<el-button type="primary" @click="submitForm">提交</el-button>
<el-button @click="handleBack">返回</el-button>
@@ -31,7 +43,7 @@
<script setup lang="ts">
import { ref } from 'vue';
import PageHeader from '@/components/Pageheader/index.vue';
import { addComplaintType, getComplaintType, updateComplaintType } from '@/api/system/ComplainType';
import { addActivity, getActivity, updateActivity } from '@/api/system/Activity';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { com_repair_project_status } = toRefs<any>(proxy?.useDict('com_repair_project_status'));
@@ -40,17 +52,21 @@ const router = useRouter();
const formRef = ref();
const form = ref({
'id': null,
'name': '',
'titile': '',
'author': '',
'content': '',
'status': '0'
});
const rules = {
name: [{ required: true, message: '请输入投诉类型名称', trigger: 'blur' }]
titile: [{ required: true, message: '请输入活动标题', trigger: 'blur' }],
author: [{ required: true, message: '请输入作者', trigger: 'blur' }],
content: [{ required: true, message: '请输入内容', trigger: 'blur' }]
};
const userid = ref();
// ! 投诉 ====================================================================================================
function init() {
getComplaintType(userid.value).then((res) => {
getActivity(userid.value).then((res) => {
form.value = {
...form.value,
...res.data
@@ -69,12 +85,12 @@ const submitForm = () => {
formRef.value?.validate(async (valid: boolean) => {
if (valid) {
if (userid.value) {
updateComplaintType(form.value).then(() => {
updateActivity(form.value).then(() => {
ElMessage.success('编辑成功');
handleBack();
});
} else {
addComplaintType(form.value).then(() => {
addActivity(form.value).then(() => {
ElMessage.success('添加成功');
handleBack();
});
@@ -86,7 +102,7 @@ const submitForm = () => {
// 返回
function handleBack() {
router.push({
path: '/repair/complaintType'
path: '/repair/Activity'
});
}
</script>
@@ -100,7 +116,7 @@ function handleBack() {
flex: 1;
.formbox {
width: 500px;
width: 1000px;
margin: 0 auto;
}
&:deep(div.el-step__head.is-process) {

View File

@@ -1,5 +1,6 @@
<template>
<div class="flex flex-col h-full p-2">
<Pageheader title="活动管理"></Pageheader>
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
<div v-show="showSearch" class="mb-[10px]">
<el-card shadow="hover">
@@ -189,7 +190,7 @@ const submitForm = () => {
/** 删除按钮操作 */
const handleDelete = async (row?: ActivityVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除活动管理编号为"' + _ids + '"的数据项').finally(() => (loading.value = false));
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗').finally(() => (loading.value = false));
await delActivity(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();

View File

@@ -1,5 +1,6 @@
<template>
<div class="h-full p-2 flex flex-col">
<Pageheader title="投诉管理"></Pageheader>
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
<div v-show="showSearch" class="mb-[10px]">
<el-card shadow="hover">
@@ -167,7 +168,7 @@ const submitForm = () => {
/** 删除按钮操作 */
const handleDelete = async (row?: ComplaintVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除投诉管理编号为"' + _ids + '"的数据项').finally(() => (loading.value = false));
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗').finally(() => (loading.value = false));
await delComplaint(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();

View File

@@ -1,5 +1,6 @@
<template>
<div class="p-2">
<Pageheader title="投诉类型管理"></Pageheader>
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
<div v-show="showSearch" class="mb-[10px]">
<el-card shadow="hover">
@@ -160,7 +161,7 @@ const handleUpdate = async (row?: ComplaintTypeVO) => {
/** 删除按钮操作 */
const handleDelete = async (row?: ComplaintTypeVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除投诉类型管理编号为"' + _ids + '"的数据项').finally(() => (loading.value = false));
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗').finally(() => (loading.value = false));
await delComplaintType(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();

View File

@@ -0,0 +1,168 @@
<template>
<div class="ResidentMainBox p-2 w-full">
<PageHeader title="装修编辑"></PageHeader>
<div class="ResidentMainBody">
<el-card>
<template #header>
<div class="title">基本信息</div>
</template>
<div class="addBuildingFormBody">
<div class="formbox">
<el-form ref="formRef" :model="form" :rules="rules" label-width="120px">
<el-row>
<el-col :span="12">
<el-form-item label="房屋" prop="urgencyLevel">
<el-cascader @change="handleChange" v-model="userHousepath" :options="treedata" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="申请人" prop="urgencyLevel">
<el-input v-model.trim="form.author" placeholder="请输入申请人" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="装修公司" prop="noticeTitle">
<el-input v-model.trim="form.noticeTitle" placeholder="请输入装修公司" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="装修内容" prop="author">
<el-input v-model.trim="form.author" placeholder="请输入装修内容" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="装修押金(元)" prop="urgencyLevel">
<el-input v-model.trim="form.author" placeholder="请输入装修押金" />
</el-form-item>
</el-col>
</el-row>
<el-form-item>
<el-button type="primary" @click="submitForm">提交</el-button>
<el-button @click="handleBack">返回</el-button>
</el-form-item>
</el-form>
</div>
</div>
</el-card>
</div>
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import PageHeader from '@/components/Pageheader/index.vue';
import { addDecoration, getDecoration, updateDecoration } from '@/api/system/Decoration';
import { useHouseStore } from '@/store/modules/house';
import { CascaderValue } from 'element-plus';
const houseStore = useHouseStore();
const { treedata } = storeToRefs(houseStore);
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const route = useRoute();
const router = useRouter();
const formRef = ref();
const form = ref({
'id': null,
'houseId': null,
'author': '',
'noticeTitle': '',
'urgencyLevel': '0',
'publishStatus': ''
});
const rules = {
noticeTitle: [{ required: true, message: '请输入公告标题', trigger: 'blur' }],
urgencyLevel: [{ required: true, message: '请选择紧急程度', trigger: 'blur' }],
author: [{ required: true, message: '请输入作者名称', trigger: 'blur' }],
noticeContent: [{ required: true, message: '请输入公告内容', trigger: 'blur' }]
};
const userid = ref();
// ! 投诉 ====================================================================================================
function init() {
getDecoration(userid.value).then((res) => {
form.value = {
...form.value,
...res.data
};
console.log(form.value);
});
}
if (route.query.id) {
userid.value = route.query.id;
init();
}
// 获取房屋
const userHousepath = ref([]);
function handleChange(val: (string | number)[]) {
if (val.length >= 3) {
form.value.houseId = val.pop() as number;
} else {
form.value.houseId = null;
}
}
// 提交
const submitForm = () => {
formRef.value?.validate(async (valid: boolean) => {
if (valid) {
if (userid.value) {
updateDecoration(form.value).then(() => {
ElMessage.success('编辑成功');
handleBack();
});
} else {
addDecoration(form.value).then(() => {
ElMessage.success('添加成功');
handleBack();
});
}
}
});
};
// 返回
function handleBack() {
router.push({
path: '/repair/noticepc'
});
}
</script>
<style scoped lang="scss">
.ResidentMainBox {
display: flex;
flex-direction: column;
.ResidentMainBody {
margin-top: 20px;
flex: 1;
.formbox {
width: 1000px;
margin: 0 auto;
}
&:deep(div.el-step__head.is-process) {
& > div.el-step__line {
width: 0;
border: 1px dashed gray;
background: transparent;
}
}
&:deep(.el-step.is-vertical .el-step__line) {
top: 20px;
}
&:deep(div.el-step__head.is-finish) {
& > div.el-step__line {
width: 0;
border: 1px solid var(--el-color-primary);
background: transparent;
}
}
}
}
</style>

View File

@@ -0,0 +1,187 @@
<template>
<div class="p-2">
<Pageheader title="装修管理"></Pageheader>
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
<div v-show="showSearch" class="mb-[10px]">
<el-card shadow="hover">
<el-form label-width="120px" ref="queryFormRef" :model="queryParams" :inline="true">
<el-form-item label="申请人姓名" prop="applyName">
<el-input v-model="queryParams.applyName" placeholder="请输入申请人姓名" clearable @keyup.enter="handleQuery" />
</el-form-item>
<el-form-item label="装修验收结果" prop="inspectionResult">
<el-select v-model="queryParams.typeId" placeholder="请选择装修验收结果" style="width: 240px">
<el-option v-for="item in com_decoration_status" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
</el-card>
</div>
</transition>
<el-card shadow="never">
<template #header>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['decoration:decoration:add']">新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['decoration:decoration:edit']"
>修改</el-button
>
</el-col>
<el-col :span="1.5">
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['decoration:decoration:remove']"
>删除</el-button
>
</el-col>
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
</template>
<el-table v-loading="loading" border :data="decorationList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="所属小区" align="center" prop="villageId" />
<el-table-column label="所属房屋" align="center" prop="houseId" />
<el-table-column label="申请人姓名" align="center" prop="applyName" />
<el-table-column label="装修公司" align="center" prop="decorationCompany" />
<el-table-column label="装修内容" align="center" prop="decorationContent" />
<el-table-column label="装修押金" align="center" prop="decorationDeposit" />
<el-table-column label="装修验收结果" align="center" prop="inspectionResult">
<template #default="scope">
<dict-tag :options="com_decoration_status" :value="scope.row.inspectionResult"></dict-tag>
</template>
</el-table-column>
<el-table-column label="申请时间" align="center" prop="inspectionName" />
<el-table-column label="验收人" align="center" prop="inspectionName" />
<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="['decoration:decoration:edit']">验收</el-button>
<el-button link type="primary" @click="handleUpdate(scope.row)" v-hasPermi="['decoration:decoration:edit']">详情</el-button>
<el-button link type="primary" @click="handleUpdate(scope.row)" v-hasPermi="['decoration:decoration:edit']">修改</el-button>
<el-button link type="primary" @click="handleDelete(scope.row)" v-hasPermi="['decoration:decoration:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
</el-card>
</div>
</template>
<script setup name="Decoration" lang="ts">
import { listDecoration, delDecoration } from '@/api/system/Decoration/index';
import { DecorationVO, DecorationQuery, DecorationForm } from '@/api/system/Decoration/type';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { com_decoration_status } = toRefs<any>(proxy?.useDict('com_decoration_status'));
const decorationList = ref<DecorationVO[]>([]);
const buttonLoading = ref(false);
const loading = ref(true);
const showSearch = ref(true);
const ids = ref<Array<string | number>>([]);
const single = ref(true);
const multiple = ref(true);
const total = ref(0);
const queryFormRef = ref<ElFormInstance>();
const decorationFormRef = ref<ElFormInstance>();
const initFormData: DecorationForm = {
id: undefined,
villageId: undefined,
houseId: undefined,
applyName: undefined,
decorationCompany: undefined,
decorationContent: undefined,
decorationDeposit: undefined,
inspectionResult: undefined,
remark: undefined,
inspectionName: undefined
};
const data = reactive<PageData<DecorationForm, DecorationQuery>>({
form: { ...initFormData },
queryParams: {
pageNum: 1,
pageSize: 10,
villageId: undefined,
houseId: undefined,
applyName: undefined,
decorationCompany: undefined,
decorationContent: undefined,
decorationDeposit: undefined,
inspectionResult: undefined,
inspectionName: undefined,
params: {}
},
rules: {
id: [{ required: true, message: '装修管理表id不能为空', trigger: 'blur' }]
}
});
const { queryParams, form, rules } = toRefs(data);
/** 查询装修管理列表 */
const getList = async () => {
loading.value = true;
const res = await listDecoration(queryParams.value);
decorationList.value = res.rows;
total.value = res.total;
loading.value = false;
};
/** 搜索按钮操作 */
const handleQuery = () => {
queryParams.value.pageNum = 1;
getList();
};
/** 重置按钮操作 */
const resetQuery = () => {
queryFormRef.value?.resetFields();
handleQuery();
};
/** 多选框选中数据 */
const handleSelectionChange = (selection: DecorationVO[]) => {
ids.value = selection.map((item) => item.id);
single.value = selection.length != 1;
multiple.value = !selection.length;
};
const router = useRouter();
/** 新增按钮操作 */
const handleAdd = () => {
router.push({
path: '/repair/addDecoration'
});
};
/** 修改按钮操作 */
const handleUpdate = async (row?: DecorationVO) => {
router.push({
path: '/repair/addDecoration',
query: {
id: row.id
}
});
};
/** 删除按钮操作 */
const handleDelete = async (row?: DecorationVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗?').finally(() => (loading.value = false));
await delDecoration(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();
};
onMounted(() => {
getList();
});
</script>

View File

@@ -0,0 +1,174 @@
<template>
<div class="ResidentMainBox p-2 w-full">
<PageHeader title="办事编辑"></PageHeader>
<div class="ResidentMainBody">
<el-card>
<template #header>
<div class="title">基本信息</div>
</template>
<div class="addBuildingFormBody">
<div class="formbox">
<el-form ref="formRef" :model="form" :rules="rules" label-width="120px">
<el-row>
<el-col>
<el-form-item label="办事内容" prop="content">
<editor
@update:model-value="handleContent"
:model-value="form.content"
:height="500"
:min-height="300"
:read-only="false"
:file-size="5"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="求助人姓名" prop="seekName">
<el-input v-model.trim="form.seekName" placeholder="请输入求助人姓名" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系方式" prop="phone">
<el-input v-model.trim="form.phone" placeholder="请输入联系方式" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="办事时间" prop="handleTime">
<el-date-picker
format="YYYY-MM-DD HH:mm"
value-format="YYYY-MM-DD HH:mm"
v-model="form.handleTime"
type="datetime"
placeholder="请选择"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="办事地点" prop="handlePosition">
<el-input v-model.trim="form.handlePosition" placeholder="请输入办事地点" />
</el-form-item>
</el-col>
</el-row>
<el-form-item>
<el-button type="primary" @click="submitForm">提交</el-button>
<el-button @click="handleBack">返回</el-button>
</el-form-item>
</el-form>
</div>
</div>
</el-card>
</div>
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import PageHeader from '@/components/Pageheader/index.vue';
import { addHandleLog, getHandleLog, updateHandleLog } from '@/api/system/HandleLog';
const route = useRoute();
const router = useRouter();
const formRef = ref();
const form = ref({
'id': null,
'content': '',
'seekName': '',
'phone': '',
'handleTime': '',
'handlePosition': ''
});
const rules = {
content: [{ required: true, message: '请输入办事内容', trigger: 'blur' }],
seekName: [{ required: true, message: '请选择求助人', trigger: 'blur' }],
handlePosition: [{ required: true, message: '请输入办事地点', trigger: 'blur' }],
handleTime: [{ required: true, message: '请输入办事时间', trigger: 'blur' }]
};
const userid = ref();
// ! 富文本 =============================================================================================================
function handleContent(val: string) {
form.value.content = val.trim();
}
// ! 富文本 =============================================================================================================
// ! 初始 ====================================================================================================
function init() {
getHandleLog(userid.value).then((res) => {
form.value = {
...form.value,
...res.data
};
console.log(form.value);
});
}
if (route.query.id) {
userid.value = route.query.id;
init();
}
// 提交
const submitForm = () => {
formRef.value?.validate(async (valid: boolean) => {
if (valid) {
if (userid.value) {
updateHandleLog(form.value).then(() => {
ElMessage.success('编辑成功');
handleBack();
});
} else {
addHandleLog(form.value).then(() => {
ElMessage.success('添加成功');
handleBack();
});
}
}
});
};
// 返回
function handleBack() {
router.push({
path: '/repair/handlelog'
});
}
</script>
<style scoped lang="scss">
.ResidentMainBox {
display: flex;
flex-direction: column;
.ResidentMainBody {
margin-top: 20px;
flex: 1;
.formbox {
width: 1000px;
margin: 0 auto;
}
:deep(.el-date-editor.el-input, .el-date-editor.el-input__wrapper) {
width: 380px;
}
&:deep(div.el-step__head.is-process) {
& > div.el-step__line {
width: 0;
border: 1px dashed gray;
background: transparent;
}
}
&:deep(.el-step.is-vertical .el-step__line) {
top: 20px;
}
&:deep(div.el-step__head.is-finish) {
& > div.el-step__line {
width: 0;
border: 1px solid var(--el-color-primary);
background: transparent;
}
}
}
}
</style>

View File

@@ -0,0 +1,177 @@
<template>
<div class="flex flex-col h-full p-2">
<pageheader title="办事记录"></pageheader>
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
<div v-show="showSearch" class="mb-[10px]">
<el-card shadow="hover">
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
<el-form-item label="求助人" prop="seekName">
<el-input v-model="queryParams.seekName" placeholder="请输入求助人" clearable @keyup.enter="handleQuery" />
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
</el-card>
</div>
</transition>
<el-card class="flex-1" shadow="never">
<template #header>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['handleLog:handleLog:add']">新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['handleLog:handleLog:edit']"
>修改</el-button
>
</el-col>
<el-col :span="1.5">
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['handleLog:handleLog:remove']"
>删除</el-button
>
</el-col>
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
</template>
<el-table v-loading="loading" border :data="handleLogList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="办事内容" align="center" prop="content">
<template #default="scope">
<div class="color-blue" v-html="scope.row.content"></div>
</template>
</el-table-column>
<el-table-column label="求助人" align="center" prop="seekName" width="120" />
<el-table-column label="联系方式" align="center" prop="phone" width="120" />
<el-table-column label="办事时间" align="center" prop="handleTime" width="120">
<template #default="scope">
<span>{{ parseTime(scope.row.handleTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="办事地点" align="center" prop="handlePosition" />
<el-table-column label="操作" width="200" align="center" fixed="right" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link type="primary" @click="handleUpdate(scope.row)" v-hasPermi="['handleLog:handleLog:edit']">修改</el-button>
<el-button link type="primary" @click="handleDelete(scope.row)" v-hasPermi="['handleLog:handleLog:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
</el-card>
</div>
</template>
<script setup name="HandleLog" lang="ts">
import { listHandleLog, getHandleLog, delHandleLog, addHandleLog, updateHandleLog } from '@/api/system/HandleLog/index';
import { HandleLogVO, HandleLogQuery, HandleLogForm } from '@/api/system/HandleLog/type';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const handleLogList = ref<HandleLogVO[]>([]);
const buttonLoading = ref(false);
const loading = ref(true);
const showSearch = ref(true);
const ids = ref<Array<string | number>>([]);
const single = ref(true);
const multiple = ref(true);
const total = ref(0);
const queryFormRef = ref<ElFormInstance>();
const handleLogFormRef = ref<ElFormInstance>();
const initFormData: HandleLogForm = {
id: undefined,
content: undefined,
seekName: undefined,
phone: undefined,
handleTime: undefined,
handlePosition: undefined
};
const data = reactive<PageData<HandleLogForm, HandleLogQuery>>({
form: { ...initFormData },
queryParams: {
pageNum: 1,
pageSize: 10,
content: undefined,
seekName: undefined,
phone: undefined,
handleTime: undefined,
handlePosition: undefined,
params: {}
},
rules: {
id: [{ required: true, message: '办事记录表id不能为空', trigger: 'blur' }]
}
});
const { queryParams, form, rules } = toRefs(data);
/** 查询办事记录列表 */
const getList = async () => {
loading.value = true;
const res = await listHandleLog(queryParams.value);
handleLogList.value = res.rows;
total.value = res.total;
loading.value = false;
};
/** 搜索按钮操作 */
const handleQuery = () => {
queryParams.value.pageNum = 1;
getList();
};
/** 重置按钮操作 */
const resetQuery = () => {
queryFormRef.value?.resetFields();
handleQuery();
};
/** 多选框选中数据 */
const handleSelectionChange = (selection: HandleLogVO[]) => {
ids.value = selection.map((item) => item.id);
single.value = selection.length != 1;
multiple.value = !selection.length;
};
const router = useRouter();
/** 新增按钮操作 */
const handleAdd = () => {
router.push({
path: '/repair/addHandleLog'
});
};
/** 修改按钮操作 */
const handleUpdate = async (row?: HandleLogVO) => {
router.push({
path: '/repair/addHandleLog',
query: {
id: row.id
}
});
};
/** 删除按钮操作 */
const handleDelete = async (row?: HandleLogVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗?').finally(() => (loading.value = false));
await delHandleLog(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();
};
onMounted(() => {
getList();
});
</script>
<style lang="scss" scoped>
.el-table {
height: calc(100% - 80px);
}
</style>

View File

@@ -276,7 +276,7 @@ const submitForm = () => {
/** 删除按钮操作 */
const handleDelete = async (row?: MonthCardVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除月卡管理编号为"' + _ids + '"的数据项').finally(() => (loading.value = false));
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗').finally(() => (loading.value = false));
await delMonthCard(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();

View File

@@ -0,0 +1,173 @@
<template>
<div class="ResidentMainBox p-2 w-full">
<PageHeader title="公告"></PageHeader>
<div class="ResidentMainBody">
<el-card>
<template #header>
<div class="title">基本信息</div>
</template>
<div class="addBuildingFormBody">
<div class="formbox">
<el-form ref="formRef" :model="form" :rules="rules" label-width="120px">
<el-row>
<el-col :span="12">
<el-form-item label="公告标题" prop="noticeTitle">
<el-input v-model.trim="form.noticeTitle" placeholder="请输入公告标题" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="作者" prop="author">
<el-input v-model.trim="form.author" placeholder="请输入作者" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="公告紧急程度" prop="urgencyLevel">
<el-select v-model="form.urgencyLevel" clearable placeholder="请选择公告紧急程度">
<el-option v-for="dict in com_noticepc_level" :key="dict.value" :label="dict.label" :value="Number(dict.value)" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="是否发布" prop="publishStatus">
<el-radio-group v-model="form.publishStatus">
<el-radio v-for="dict in com_publish_status" :key="dict.value" :value="Number(dict.value)">{{ dict.label }}</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col>
<el-form-item label="公告详情" prop="noticeContent">
<editor
@update:model-value="handleContent"
:model-value="form.noticeContent"
:height="500"
:min-height="300"
:read-only="false"
:file-size="5"
/>
</el-form-item>
</el-col>
</el-row>
<el-form-item>
<el-button type="primary" @click="submitForm">提交</el-button>
<el-button @click="handleBack">返回</el-button>
</el-form-item>
</el-form>
</div>
</div>
</el-card>
</div>
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import PageHeader from '@/components/Pageheader/index.vue';
import { addComplaintType, getComplaintType, updateComplaintType } from '@/api/system/ComplainType';
import { addNotice, getNotice } from '@/api/system/NoticePc/index';
import { updateNotice } from '@/api/system/NoticePc';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { com_noticepc_level } = toRefs<any>(proxy?.useDict('com_noticepc_level'));
const { com_publish_status } = toRefs<any>(proxy?.useDict('com_publish_status'));
const route = useRoute();
const router = useRouter();
const formRef = ref();
const form = ref({
'id': null,
'author': '',
'noticeTitle': '',
'urgencyLevel': '0',
'publishStatus': '1',
'noticeContent': ''
});
const rules = {
noticeTitle: [{ required: true, message: '请输入公告标题', trigger: 'blur' }],
urgencyLevel: [{ required: true, message: '请选择紧急程度', trigger: 'blur' }],
author: [{ required: true, message: '请输入作者名称', trigger: 'blur' }],
noticeContent: [{ required: true, message: '请输入公告内容', trigger: 'blur' }]
};
const userid = ref();
// ! 富文本 =============================================================================================================
function handleContent(val: string) {
form.value.noticeContent = val.trim();
}
// ! 富文本 =============================================================================================================
// ! 投诉 ====================================================================================================
function init() {
getNotice(userid.value).then((res) => {
form.value = {
...form.value,
...res.data
};
console.log(form.value);
});
}
if (route.query.id) {
userid.value = route.query.id;
init();
}
// 提交
const submitForm = () => {
formRef.value?.validate(async (valid: boolean) => {
if (valid) {
if (userid.value) {
updateNotice(form.value).then(() => {
ElMessage.success('编辑成功');
handleBack();
});
} else {
addNotice(form.value).then(() => {
ElMessage.success('添加成功');
handleBack();
});
}
}
});
};
// 返回
function handleBack() {
router.push({
path: '/repair/noticepc'
});
}
</script>
<style scoped lang="scss">
.ResidentMainBox {
display: flex;
flex-direction: column;
.ResidentMainBody {
margin-top: 20px;
flex: 1;
.formbox {
width: 1000px;
margin: 0 auto;
}
&:deep(div.el-step__head.is-process) {
& > div.el-step__line {
width: 0;
border: 1px dashed gray;
background: transparent;
}
}
&:deep(.el-step.is-vertical .el-step__line) {
top: 20px;
}
&:deep(div.el-step__head.is-finish) {
& > div.el-step__line {
width: 0;
border: 1px solid var(--el-color-primary);
background: transparent;
}
}
}
}
</style>

View File

@@ -0,0 +1,191 @@
<template>
<div class="p-2">
<Pageheader title="公告管理"></Pageheader>
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
<div v-show="showSearch" class="mb-[10px]">
<el-card shadow="hover">
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
<el-form-item label="公告标题" prop="noticeTitle">
<el-input v-model="queryParams.noticeTitle" placeholder="请输入公告标题" clearable @keyup.enter="handleQuery" />
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
</el-card>
</div>
</transition>
<el-card shadow="never">
<template #header>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['notice:notice:add']">新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['notice:notice:edit']"
>修改</el-button
>
</el-col>
<el-col :span="1.5">
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['notice:notice:remove']"
>删除</el-button
>
</el-col>
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
</template>
<el-table v-loading="loading" border :data="noticeList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="公告标题" align="center" prop="noticeTitle" />
<el-table-column label="作者" align="center" prop="author" />
<el-table-column label="紧急程度" align="center" prop="urgencyLevel">
<template #default="scope">
<dict-tag :options="com_noticepc_level" :value="scope.row.urgencyLevel"></dict-tag>
</template>
</el-table-column>
<el-table-column label="发布状态" align="center" prop="publishStatus">
<template #default="scope">
<dict-tag :options="com_publish_status" :value="scope.row.publishStatus"></dict-tag>
</template>
</el-table-column>
<el-table-column label="已读" align="center" prop="readNum" />
<el-table-column label="未读" align="center" prop="unReadNum" />
<el-table-column label="发布人" align="center" prop="publishBy" />
<el-table-column label="发布日期" align="center" prop="publishTime" width="100">
<template #default="scope">
<span>{{ parseTime(scope.row.publishTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="220" fixed="right" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link type="primary" @click="handleUpdate(scope.row)" v-hasPermi="['notice:notice:edit']">修改</el-button>
<el-button link type="primary" @click="handleDelete(scope.row)" v-hasPermi="['notice:notice:remove']">删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
</el-card>
</div>
</template>
<script setup name="Notice" lang="ts">
import { listNotice, getNotice, delNotice, addNotice, updateNotice } from '@/api/system/NoticePc/index';
import { NoticeVO, NoticeQuery, NoticeForm } from '@/api/system/NoticePc/type';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { com_noticepc_level } = toRefs<any>(proxy?.useDict('com_noticepc_level'));
const { com_publish_status } = toRefs<any>(proxy?.useDict('com_publish_status'));
const noticeList = ref<NoticeVO[]>([]);
const buttonLoading = ref(false);
const loading = ref(true);
const showSearch = ref(true);
const ids = ref<Array<string | number>>([]);
const single = ref(true);
const multiple = ref(true);
const total = ref(0);
const queryFormRef = ref<ElFormInstance>();
const noticeFormRef = ref<ElFormInstance>();
const dialog = reactive<DialogOption>({
visible: false,
title: ''
});
const initFormData: NoticeForm = {
noticeId: undefined,
noticeTitle: undefined,
noticeContent: undefined,
author: undefined,
urgencyLevel: undefined,
publishStatus: undefined,
publishBy: undefined,
publishTime: undefined
};
const data = reactive<PageData<NoticeForm, NoticeQuery>>({
form: { ...initFormData },
queryParams: {
pageNum: 1,
pageSize: 10,
noticeTitle: undefined,
noticeContent: undefined,
author: undefined,
urgencyLevel: undefined,
publishStatus: undefined,
publishBy: undefined,
publishTime: undefined,
params: {}
},
rules: {
noticeId: [{ required: true, message: '公告ID不能为空', trigger: 'blur' }],
noticeTitle: [{ required: true, message: '公告标题不能为空', trigger: 'blur' }],
urgencyLevel: [{ required: true, message: '紧急程度不能为空', trigger: 'blur' }],
publishStatus: [{ required: true, message: '发布状态不能为空', trigger: 'change' }]
}
});
const { queryParams, form, rules } = toRefs(data);
/** 查询公告信息列表 */
const getList = async () => {
loading.value = true;
const res = await listNotice(queryParams.value);
noticeList.value = res.rows;
total.value = res.total;
loading.value = false;
};
/** 搜索按钮操作 */
const handleQuery = () => {
queryParams.value.pageNum = 1;
getList();
};
/** 重置按钮操作 */
const resetQuery = () => {
queryFormRef.value?.resetFields();
handleQuery();
};
/** 多选框选中数据 */
const handleSelectionChange = (selection: NoticeVO[]) => {
ids.value = selection.map((item) => item.noticeId);
single.value = selection.length != 1;
multiple.value = !selection.length;
};
const router = useRouter();
/** 新增按钮操作 */
const handleAdd = () => {
router.push({
path: '/repair/addNoticePc'
});
};
/** 修改按钮操作 */
const handleUpdate = async (row?: NoticeVO) => {
router.push({
path: '/repair/addNoticePc',
query: {
id: row.noticeId
}
});
};
/** 删除按钮操作 */
const handleDelete = async (row?: NoticeVO) => {
const _noticeIds = row?.noticeId || ids.value;
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗?').finally(() => (loading.value = false));
await delNotice(_noticeIds);
proxy?.$modal.msgSuccess('删除成功');
await getList();
};
onMounted(() => {
getList();
});
</script>

View File

@@ -231,7 +231,7 @@ const handleUpdate = async (row?: ParkingCostVO) => {
/** 删除按钮操作 */
const handleDelete = async (row?: ParkingCostVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除停车缴费管理编号为"' + _ids + '"的数据项').finally(() => (loading.value = false));
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗').finally(() => (loading.value = false));
await delParkingCost(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();

View File

@@ -1,15 +1,10 @@
<template>
<div class="h-full flex flex-col p-2">
<pageheader title="报修管理"></pageheader>
<Pageheader title="报修管理"></Pageheader>
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
<div v-show="showSearch" class="mb-[10px]">
<el-card shadow="hover">
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
<!-- <el-form-item label="住户类型" prop="houseId">
<el-select v-model="queryParams.parkingStatus" placeholder="请选择" clearable>
<el-option v-for="dict in com_resident_relationship" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
</el-form-item> -->
<el-form-item label="报修状态" prop="problemStatus">
<el-select v-model="queryParams.problemStatus" placeholder="请选择" clearable>
<el-option v-for="dict in com_repair_status" :key="dict.value" :label="dict.label" :value="dict.value" />
@@ -38,7 +33,7 @@
<template #header>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['repair:repair:add']">新增</el-button>
<el-button style="width: 120px" type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['repair:repair:add']">新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['repair:repair:edit']"
@@ -86,14 +81,14 @@
</template>
<script setup name="Repair" lang="ts">
import { listRepair, getRepair, delRepair, addRepair, updateRepair } from '@/api/system/Repair/index';
import { listRepair, delRepair } from '@/api/system/Repair/index';
import { RepairVO, RepairQuery, RepairForm } from '@/api/system/Repair/type';
import { listRepairProject } from '@/api/system/RepairProject';
import { listResident } from '@/api/system/resident';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { com_repair_status } = toRefs<any>(proxy?.useDict('com_repair_status'));
interface repairlistType extends RepairVO {
maintenanceItemPath?: string;
residentName?: string;
@@ -242,7 +237,7 @@ const handleShare = (row) => {
/** 删除按钮操作 */
const handleDelete = async (row?: RepairVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除报修管理编号为"' + _ids + '"的数据项').finally(() => (loading.value = false));
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗').finally(() => (loading.value = false));
await delRepair(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();

View File

@@ -217,7 +217,7 @@ async function init() {
}
}
const houseinfo = getHousePathById(treedata.value, form.value.houseId, 'label');
const houseinfo = getHousePathById(treedata.value, Number(form.value.houseId), 'label');
console.log(treedata.value);
form.value.house = houseinfo.join(' - ');

View File

@@ -317,7 +317,7 @@ const submitForm = () => {
/** 删除按钮操作 */
const handleDelete = async (row?: RepairProjectVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除报修维修项目管理编号为"' + _ids + '"的数据项').finally(() => (loading.value = false));
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗').finally(() => (loading.value = false));
await delRepairProject(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();

View File

@@ -1,5 +1,6 @@
<template>
<div class="p-2 h-full flex flex-col">
<Pageheader title="访客信息"></Pageheader>
<transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
<div v-show="showSearch" class="mb-[10px]">
<el-card shadow="hover">
@@ -53,7 +54,7 @@
</template>
<script setup name="Visitor" lang="ts">
import { listVisitor, getVisitor, delVisitor, addVisitor, updateVisitor } from '@/api/system/Visitor/index';
import { listVisitor } from '@/api/system/Visitor/index';
import { VisitorVO, VisitorQuery, VisitorForm } from '@/api/system/Visitor/type';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -156,6 +157,6 @@ onMounted(() => {
</script>
<style lang="scss" scoped>
.el-table {
height: calc(100% - 100px);
height: calc(100% - 80px);
}
</style>

View File

@@ -159,7 +159,7 @@ const handleUpdate = async (row?: AreaVO) => {
/** 删除按钮操作 */
const handleDelete = async (row?: AreaVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除车位区域管理编号为"' + _ids + '"的数据项').finally(() => (loading.value = false));
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗').finally(() => (loading.value = false));
await delArea(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();

View File

@@ -183,7 +183,7 @@ const handleUpdate = async (row?: CarVO) => {
/** 删除按钮操作 */
const handleDelete = async (row?: CarVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除车辆管理编号为"' + _ids + '"的数据项').finally(() => (loading.value = false));
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗').finally(() => (loading.value = false));
await delCar(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();

View File

@@ -234,7 +234,7 @@ const submitForm = () => {
/** 删除按钮操作 */
const handleDelete = async (row?: ConfigVO) => {
const configIds = row?.configId || ids.value;
await proxy?.$modal.confirm('是否确认删除参数编号为"' + configIds + '"的数据项');
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗');
await delConfig(configIds);
await getList();
proxy?.$modal.msgSuccess('删除成功');

View File

@@ -64,16 +64,16 @@
<el-table-column label="字典名称" align="center" prop="dictName" width="120" />
<el-table-column label="字典类型" align="center" prop="dictType" width="160">
<template #default="scope">
<span class="link-type" @click.stop="handleTypeRowClick(scope.row)">{{ scope.row.dictType }}</span>
<span v-copyText="scope.row.dictType" class="link-type" @click.stop="handleTypeRowClick(scope.row)">{{ scope.row.dictType }}</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" width="160"/>
<el-table-column label="备注" align="center" prop="remark" width="160" />
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
<template #default="scope">
<span>{{ proxy.parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="120" class-name="small-padding fixed-width">
<el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-tooltip content="修改" placement="top">
<el-button v-hasPermi="['system:dict:edit']" link type="primary" icon="Edit" @click="handleTypeUpdate(scope.row)"></el-button>
@@ -158,7 +158,7 @@
<el-table v-loading="dataLoading" border :data="dataList" @selection-change="handleDataSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column v-if="false" label="字典编码" align="center" prop="dictCode" />
<el-table-column label="字典标签" align="center" prop="dictLabel" width="80">
<el-table-column label="字典标签" align="center" prop="dictLabel">
<template #default="scope">
<span
v-if="
@@ -182,7 +182,7 @@
<span>{{ proxy.parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="120" class-name="small-padding fixed-width">
<el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-tooltip content="修改" placement="top">
<el-button v-hasPermi="['system:dict:edit']" link type="primary" icon="Edit" @click="handleDataUpdate(scope.row)"></el-button>
@@ -671,5 +671,4 @@ onMounted(() => {
.dict-table-wrap {
overflow-x: auto;
}
</style>

View File

@@ -221,7 +221,7 @@ const handleMain = async (row?: HouseRentalVO) => {
/** 删除按钮操作 */
const handleDelete = async (row?: HouseRentalVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除房屋租赁管理编号为"' + _ids + '"的数据项').finally(() => (loading.value = false));
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗').finally(() => (loading.value = false));
await delHouseRental(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();

View File

@@ -231,7 +231,7 @@ const submitForm = () => {
/** 删除按钮操作 */
const handleDelete = async (row?: NoticeVO) => {
const noticeIds = row?.noticeId || ids.value;
await proxy?.$modal.confirm('是否确认删除公告编号为"' + noticeIds + '"的数据项');
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗');
await delNotice(noticeIds);
await getList();
proxy?.$modal.msgSuccess('删除成功');

View File

@@ -216,7 +216,7 @@ const handleMain = async (row?: ParkingVO) => {
/** 删除按钮操作 */
const handleDelete = async (row?: ParkingVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除车位管理编号为"' + _ids + '"的数据项').finally(() => (loading.value = false));
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗').finally(() => (loading.value = false));
await delParking(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();

View File

@@ -261,7 +261,7 @@ const submitForm = () => {
/** 删除按钮操作 */
const handleDelete = async (row?: StoreroomVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除储藏室管理编号为"' + _ids + '"的数据项').finally(() => (loading.value = false));
await proxy?.$modal.confirm('该信息删除后无法恢复,确定要删除吗').finally(() => (loading.value = false));
await delStoreroom(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();