From 16b0c1b2a6995efe40c651d5e0c898319f682ee2 Mon Sep 17 00:00:00 2001
From: Xiao Fan <461179989@qq.com>
Date: Wed, 3 Apr 2024 11:46:12 +0800
Subject: [PATCH] =?UTF-8?q?=E8=82=96=E5=87=A14.3=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 1 +
src/api/system/car.js | 8 ++++----
src/views/system/car/index.vue | 22 +++++++++++-----------
3 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/package.json b/package.json
index 6a46cc5..2ed93d6 100644
--- a/package.json
+++ b/package.json
@@ -36,6 +36,7 @@
"url": "https://gitee.com/y_project/MuYu-Cloud.git"
},
"dependencies": {
+ "@amap/amap-jsapi-loader": "^1.0.1",
"@riophae/vue-treeselect": "0.4.0",
"axios": "0.24.0",
"clipboard": "2.0.8",
diff --git a/src/api/system/car.js b/src/api/system/car.js
index 02bf9f6..fac54b3 100644
--- a/src/api/system/car.js
+++ b/src/api/system/car.js
@@ -50,15 +50,15 @@ export function del(carIds) {
});
}
-export function updateStateClose(carId) {
+export function close(carVin) {
return request({
- url: '/system/car/updateStateClose/'+carId,
+ url: '/system/car/close/'+carVin,
method: 'post'
});
}
-export function updateStateOpen(carId) {
+export function open(carVin) {
return request({
- url: '/system/car/updateStateOpen/'+carId,
+ url: '/system/car/open/'+carVin,
method: 'post'
});
}
diff --git a/src/views/system/car/index.vue b/src/views/system/car/index.vue
index 5cd1cdf..6613b12 100644
--- a/src/views/system/car/index.vue
+++ b/src/views/system/car/index.vue
@@ -135,17 +135,17 @@
type="text"
icon="el-icon-success"
v-if="scope.row.state === 1"
- @click="handleUpdateOpen(scope.row.carId)"
+ @click="handleUpdateOpen(scope.row.carVin)"
v-hasPermi="['system:car:edit']"
- >启用
+ >上线
禁用
+ >下线