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']"
- >启用
+ >上线
禁用
+ >下线