From 367e563f7bd38f0676c88d48e749d257ee8d68d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chhk=E2=80=9D?= <“hhk@mail.com”> Date: Thu, 1 Aug 2024 17:24:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E7=AE=A1=E7=90=86=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/carmain/index.js | 53 +++++ src/views/base/carmain/CarMainForm.vue | 173 ++++++++++++++++ src/views/base/carmain/index.vue | 262 +++++++++++++++++++++++++ 3 files changed, 488 insertions(+) create mode 100644 src/api/base/carmain/index.js create mode 100644 src/views/base/carmain/CarMainForm.vue create mode 100644 src/views/base/carmain/index.vue diff --git a/src/api/base/carmain/index.js b/src/api/base/carmain/index.js new file mode 100644 index 0000000..cb809a3 --- /dev/null +++ b/src/api/base/carmain/index.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 创建车辆信息 +export function createCarMain(data) { + return request({ + url: '/base/carMain/create', + method: 'post', + data: data + }) +} + +// 更新车辆信息 +export function updateCarMain(data) { + return request({ + url: '/base/carMain/update', + method: 'put', + data: data + }) +} + +// 删除车辆信息 +export function deleteCarMain(id) { + return request({ + url: '/base/carMain/delete?id=' + id, + method: 'delete' + }) +} + +// 获得车辆信息 +export function getCarMain(id) { + return request({ + url: '/base/carMain/get?id=' + id, + method: 'get' + }) +} + +// 获得车辆信息分页 +export function getCarMainPage(params) { + return request({ + url: '/base/carMain/page', + method: 'get', + params + }) +} +// 导出车辆信息 Excel +export function exportCarMainExcel(params) { + return request({ + url: '/base/carMain/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} diff --git a/src/views/base/carmain/CarMainForm.vue b/src/views/base/carmain/CarMainForm.vue new file mode 100644 index 0000000..47e5130 --- /dev/null +++ b/src/views/base/carmain/CarMainForm.vue @@ -0,0 +1,173 @@ + + + diff --git a/src/views/base/carmain/index.vue b/src/views/base/carmain/index.vue new file mode 100644 index 0000000..9b6eaea --- /dev/null +++ b/src/views/base/carmain/index.vue @@ -0,0 +1,262 @@ + + +