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 @@