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 @@
+
+
+
+
+
+
+
@@ -120,6 +127,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -182,7 +209,7 @@