From e9417fb07f8ecd2199fdc1642a73a81440922a0f Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: Wed, 24 Sep 2025 17:09:03 +0800
Subject: [PATCH] =?UTF-8?q?v1.9=20=E5=81=9C=E8=BD=A6=E4=BD=8D=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E6=97=A0=E6=B3=95=E9=80=89=E6=8B=A9=E5=81=9C=E8=BD=A6?=
=?UTF-8?q?bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/car/batchAddParkingSpace.vue | 5 +-
src/components/car/chooseParkingArea.vue | 71 +++++++--------------
src/views/car/listParkingSpaceList.vue | 10 +--
3 files changed, 29 insertions(+), 57 deletions(-)
diff --git a/src/components/car/batchAddParkingSpace.vue b/src/components/car/batchAddParkingSpace.vue
index 35cbb484b..fd3719229 100644
--- a/src/components/car/batchAddParkingSpace.vue
+++ b/src/components/car/batchAddParkingSpace.vue
@@ -28,8 +28,8 @@
:rules="[{ required: true, message: $t('batchAddParkingSpace.parkingSpaceTypePlaceholder'), trigger: 'change' }]">
-
-
+
+
@@ -80,6 +80,7 @@ export default {
try {
const data = await getDict('parking_space', 'parking_type')
this.parkingTypes = data
+
} catch (error) {
this.$message.error(this.$t('common.loadDictError'))
}
diff --git a/src/components/car/chooseParkingArea.vue b/src/components/car/chooseParkingArea.vue
index e0bd7044e..ac03f9a80 100644
--- a/src/components/car/chooseParkingArea.vue
+++ b/src/components/car/chooseParkingArea.vue
@@ -1,65 +1,40 @@
-
-
+
+
-
-
-
+
+
{{ $t('chooseParkingArea.query') }}
-
+
{{ $t('chooseParkingArea.reset') }}
-
-
+
-
+
{{ $t('chooseParkingArea.select') }}
-
-
-
+
+
+
@@ -88,7 +63,7 @@ export default {
this.visible = true
this.loadParkingAreas()
},
-
+
async loadParkingAreas() {
try {
const params = {
@@ -97,35 +72,35 @@ export default {
communityId: getCommunityId(),
num: this.searchForm.num
}
-
+
const res = await listParkingAreas(params)
- this.parkingAreas = res.data.parkingAreas
- this.pagination.total = res.data.total
+ this.parkingAreas = res.parkingAreas
+ this.pagination.total = res.total
} catch (error) {
this.$message.error(this.$t('common.loadError'))
}
},
-
+
selectParkingArea(row) {
this.$emit('choose', row)
this.visible = false
},
-
+
queryParkingAreas() {
this.pagination.current = 1
this.loadParkingAreas()
},
-
+
resetParkingAreas() {
this.searchForm.num = ''
this.queryParkingAreas()
},
-
+
handlePageChange(page) {
this.pagination.current = page
this.loadParkingAreas()
},
-
+
handleSizeChange(size) {
this.pagination.size = size
this.loadParkingAreas()
diff --git a/src/views/car/listParkingSpaceList.vue b/src/views/car/listParkingSpaceList.vue
index b24c7cf22..34ee34431 100644
--- a/src/views/car/listParkingSpaceList.vue
+++ b/src/views/car/listParkingSpaceList.vue
@@ -14,24 +14,20 @@
-
-
-
-
+
{{ $t('listParkingSpace.select') }}
-
-
+
-
+