From 3ad3aab174357bcfa3cd41c1e420f5a748e89b8b Mon Sep 17 00:00:00 2001 From: Xiao Fan <461179989@qq.com> Date: Sun, 31 Mar 2024 09:10:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=82=96=E5=87=A13.31?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/car.js | 54 ++-- src/views/system/car/index.vue | 492 +++++++++++++++++++++++++-------- 2 files changed, 404 insertions(+), 142 deletions(-) diff --git a/src/api/system/car.js b/src/api/system/car.js index c349574..7175929 100644 --- a/src/api/system/car.js +++ b/src/api/system/car.js @@ -1,43 +1,59 @@ import request from '@/utils/request' // 查询菜单列表 -export function list(query) { +export function list(data) { return request({ url: '/system/car/list', method: 'get', - params: query + data }) } -export function add(query) { +export function selectFence(data) { + return request({ + url: '/system/car/selectFence', + method: 'get', + data + }) +} + +export function exportA(data){ + return request({ + url: '/system/car/exportA', + method: 'post', + data, + responseType: 'blob' // 添加 responseType: 'blob',以处理文件下载 + }) +} + + +export function add(data) { return request({ url: '/system/car/add', method: 'post', - params: query + data }) } -export function update(query) { +export function update(data) { return request({ - url: '/system/car/list', + url: '/system/car/update', method: 'post', - params: query + data }) } -export function del(carId) { +export function del(carIds) { return request({ - url: '/system/car/del/' + carId, + url: '/system/car/del/'+carIds, method: 'post' - }) + }); } -export function selectState() { - return request({ - url: '/system/car/selectState', - method: 'get' - }) -} + + + + export function findById(carId) { return request({ url: '/system/car/findById/' + carId, @@ -46,9 +62,3 @@ export function findById(carId) { } -export function selectFence() { - return request({ - url: '/system/car/selectFence', - method: 'get' - }) -} diff --git a/src/views/system/car/index.vue b/src/views/system/car/index.vue index 4dd966a..fd4e6f2 100644 --- a/src/views/system/car/index.vue +++ b/src/views/system/car/index.vue @@ -1,170 +1,422 @@ + -