新增数据,开始安全巡检模块

This commit is contained in:
Zy
2026-04-17 19:39:21 +08:00
parent 4184f1c55d
commit 9a95e2b7e3
74 changed files with 1942 additions and 403 deletions

View File

@@ -100,7 +100,6 @@ const form = ref({
residentId: null, // 住户id
parkingStatus: '', // 车位状态
remark: '', // 备注
villageId: Number(localStorage.getItem('villageid')),
parkingCode: '' // 车位编码
});
const rules = ref({
@@ -142,7 +141,6 @@ const submitForm = () => {
formRef.value?.validate(async (valid: boolean) => {
if (valid) {
form.value.residentId = holderInfo.value;
form.value.villageId = Number(localStorage.getItem('villageid'));
if (userid.value) {
updateParking(form.value).then((res) => {
ElMessage.success('编辑成功');

View File

@@ -1,5 +1,5 @@
<template>
<div class="p-2">
<div class="h-full flex flex-col 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]">
@@ -27,7 +27,7 @@
</div>
</transition>
<el-card shadow="never">
<el-card class="flex-1" shadow="never">
<template #header>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
@@ -129,7 +129,6 @@ const data = reactive<PageData<ParkingForm, ParkingQuery>>({
queryParams: {
pageNum: 1,
pageSize: 10,
villageId: Number(localStorage.getItem('villageid')),
areaId: undefined,
parkingCode: undefined,
parkingArea: undefined,
@@ -138,8 +137,7 @@ const data = reactive<PageData<ParkingForm, ParkingQuery>>({
residentId: undefined,
addTime: undefined,
addBy: undefined,
checkStatus: undefined,
params: {}
checkStatus: undefined
}
});
@@ -217,3 +215,9 @@ onMounted(() => {
getList();
});
</script>
<style lang="scss" scoped>
.el-table {
height: calc(100% - 80px);
}
</style>

View File

@@ -130,7 +130,7 @@
<div class="actions mt-5">
<el-button type="primary">审核通过</el-button>
<el-button type="danger">审核不通过</el-button>
<el-button>返回</el-button>
<el-button @click="handlBacK">返回</el-button>
</div>
</div>
</div>
@@ -232,6 +232,11 @@ function handleActivestaus(rews) {
console.log(active.value);
}
const router = useRouter();
function handlBacK() {
router.back();
}
</script>
<style scoped lang="scss">