From de6a67308f76ffeb4ac5aab7353eb20895858184 Mon Sep 17 00:00:00 2001
From: Xiao Fan <461179989@qq.com>
Date: Sun, 31 Mar 2024 16:59:22 +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 | 17 +++++--
src/views/system/car/index.vue | 83 +++++++++++++++++++++++-----------
2 files changed, 70 insertions(+), 30 deletions(-)
diff --git a/src/api/system/car.js b/src/api/system/car.js
index 7175929..02bf9f6 100644
--- a/src/api/system/car.js
+++ b/src/api/system/car.js
@@ -1,11 +1,11 @@
import request from '@/utils/request'
// 查询菜单列表
-export function list(data) {
+export function list(params) {
return request({
url: '/system/car/list',
method: 'get',
- data
+ params
})
}
@@ -50,7 +50,18 @@ export function del(carIds) {
});
}
-
+export function updateStateClose(carId) {
+ return request({
+ url: '/system/car/updateStateClose/'+carId,
+ method: 'post'
+ });
+}
+export function updateStateOpen(carId) {
+ return request({
+ url: '/system/car/updateStateOpen/'+carId,
+ method: 'post'
+ });
+}
diff --git a/src/views/system/car/index.vue b/src/views/system/car/index.vue
index fd4e6f2..3e2489d 100644
--- a/src/views/system/car/index.vue
+++ b/src/views/system/car/index.vue
@@ -130,6 +130,22 @@
+ 启用
+ 禁用
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -211,7 +227,7 @@