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

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

@@ -121,7 +121,6 @@ const form = ref({
id: null,
areaId: null, // 区域id
residentId: null, // 车位id
villageId: Number(localStorage.getItem('villageid')), // 小区id
parkingId: null, // 持有人id
carNum: '', //车牌号
carBrand: '', //车辆品牌
@@ -207,7 +206,6 @@ function changeArealist(val: string) {
const submitForm = () => {
formRef.value?.validate(async (valid: boolean) => {
if (valid) {
form.value.villageId = Number(localStorage.getItem('villageid'));
if (userid.value.trim() !== '') {
updateCar(form.value).then(() => {
ElMessage.success('编辑成功');

View File

@@ -1,5 +1,5 @@
<template>
<div class="p-2">
<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]">
@@ -23,7 +23,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">
@@ -109,7 +109,6 @@ const data = reactive<PageData<CarForm, CarQuery>>({
queryParams: {
pageNum: 1,
pageSize: 10,
villageId: Number(localStorage.getItem('villageid')),
areaId: undefined,
parkingId: undefined,
residentId: undefined,
@@ -196,3 +195,8 @@ onMounted(() => {
getList();
});
</script>
<style lang="scss" scoped>
.el-table {
height: calc(100% - 80px);
}
</style>