From 00eb65d366b88839092790bf27e0637f6ea5f939 Mon Sep 17 00:00:00 2001 From: liuyunhu <3286117488@qq.com> Date: Sun, 31 Mar 2024 22:13:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E7=AE=A1=E7=90=86=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/couplet/vehicle.js | 26 ++++ src/views/couplet/vehicle/index.vue | 233 ++++++++++++++++++++++++++-- 2 files changed, 244 insertions(+), 15 deletions(-) diff --git a/src/api/couplet/vehicle.js b/src/api/couplet/vehicle.js index fb26225..7db9029 100644 --- a/src/api/couplet/vehicle.js +++ b/src/api/couplet/vehicle.js @@ -25,3 +25,29 @@ export function getVehicleTypes() { }) } +//编辑车辆 +export function editById(vehicle) { + return request({ + url: '/vehicle/vehicle/editById', + method: 'post', + data:vehicle + }) +} + +//新增车辆 +export function insert(vehicle) { + return request({ + url: '/vehicle/vehicle/insert', + method: 'post', + data:vehicle + }) +} + +//获取绑定当前车辆的标识 +export function getBindLogoByVehicleId(vehicleId) { + return request({ + url: '/vehicle/vehicle/getBindLogoById/'+vehicleId, + method: 'get' + }) +} + diff --git a/src/views/couplet/vehicle/index.vue b/src/views/couplet/vehicle/index.vue index 79356d5..4863095 100644 --- a/src/views/couplet/vehicle/index.vue +++ b/src/views/couplet/vehicle/index.vue @@ -4,15 +4,26 @@ - - - - - - - + + + + + + + + + + + + + + 新增车辆 + + + - - - + + + 0 + +