From 851adeccd264430caee28394784d1d5de21a4dcb Mon Sep 17 00:00:00 2001 From: zc Date: Wed, 17 Dec 2025 09:56:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B4=E5=AE=89=E4=BC=98=E5=8C=96-=E8=BD=A6?= =?UTF-8?q?=E5=9C=BA=E4=B8=8D=E9=87=8D=E5=A4=8D=E6=B7=BB=E5=8A=A0=E8=AE=BE?= =?UTF-8?q?=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/vehicle/carPark.js | 8 ++++++ src/views/vehicle/carInfo/index.vue | 6 ++-- src/views/vehicle/carPark/index.vue | 39 +++++++++++++++++++++++++- src/views/vehicle/parkRecord/index.vue | 7 ++++- 4 files changed, 56 insertions(+), 4 deletions(-) diff --git a/src/api/vehicle/carPark.js b/src/api/vehicle/carPark.js index 57fdbbe..cd73e89 100644 --- a/src/api/vehicle/carPark.js +++ b/src/api/vehicle/carPark.js @@ -42,3 +42,11 @@ export function delCarPark(id) { method: 'delete' }) } + +// 查询车场下拉数据 +export function getCarParkSelect(id) { + return request({ + url: '/system/carPark/getCarParkSelect/' + id, + method: 'get' + }) +} diff --git a/src/views/vehicle/carInfo/index.vue b/src/views/vehicle/carInfo/index.vue index 8cc7b47..e1412d5 100644 --- a/src/views/vehicle/carInfo/index.vue +++ b/src/views/vehicle/carInfo/index.vue @@ -575,8 +575,10 @@ export default { }, /** 提交按钮 */ submitForm() { - if(this.form.value2!=null){ - this.form.segTime=this.form.value2[0]+"-"+this.form.value2[1]; + if (this.form.value2 != null) { + this.form.segTime = this.form.value2[0] + "-" + this.form.value2[1]; + } else { + delete this.form.segTime; } this.$refs["form"].validate(valid => { if (valid) { diff --git a/src/views/vehicle/carPark/index.vue b/src/views/vehicle/carPark/index.vue index 8cc00c9..30111cc 100644 --- a/src/views/vehicle/carPark/index.vue +++ b/src/views/vehicle/carPark/index.vue @@ -67,6 +67,13 @@ + + + +