diff --git a/.env.local b/.env.local index 78a5d223..2d26cfc9 100644 --- a/.env.local +++ b/.env.local @@ -4,9 +4,9 @@ NODE_ENV=development VITE_DEV=true # 请求路径 -VITE_BASE_URL='http://192.168.0.74:48080' +# VITE_BASE_URL='http://192.168.0.74:48080' # VITE_BASE_URL='http://192.168.0.153:48080' -# VITE_BASE_URL='http://192.168.0.45:48080' +VITE_BASE_URL='http://192.168.0.45:48080' # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务 VITE_UPLOAD_TYPE=server diff --git a/src/views/board/carBoard/index.vue b/src/views/board/carBoard/index.vue index a340e48a..1903312b 100644 --- a/src/views/board/carBoard/index.vue +++ b/src/views/board/carBoard/index.vue @@ -96,7 +96,13 @@ class="new-top-box-right-input-icon" /> -
新增车辆
+
+ 新增车辆 +
@@ -131,13 +137,31 @@ @@ -153,11 +177,18 @@ effect="dark" placement="bottom-start" v-if="item.robotCodeLevel == 1" - > - + > + - + - + - + @@ -261,32 +313,32 @@
电量
-
+
车辆状态
-
+
任务状态
-
+
楼层
-
+
区域
-
+
信息
-
+
@@ -352,7 +404,7 @@ const getCarList = async () => { timerRef.value = setInterval(() => { getCarList() getRobotInformationStatistics() - }, 5000) + }, 10000) let res = await CarApi.getRobotInformationList(queryParams) // console.log(res.list) list.value = res.list @@ -409,15 +461,13 @@ const clearCar = (robotNo) => { type: 'warning' }) .then(() => { - CarApi.cleanTrafficManagement({robotNo}).then((res) => { + CarApi.cleanTrafficManagement({ robotNo }).then((res) => { getCarList() getRobotInformationStatistics() message.success('清除成功') }) }) - .catch(() => { - - }) + .catch(() => {}) } // 恢复任务 @@ -428,16 +478,14 @@ const recoveryTask = (robotNo) => { type: 'warning' }) .then(() => { - CarApi.doTaskContinue({robotNo}).then((res) => { + CarApi.doTaskContinue({ robotNo }).then((res) => { getCarList() getRobotInformationStatistics() message.success('恢复成功') }) }) - .catch(() => { - - }) - } + .catch(() => {}) +} const changeRobotStatisticsType = (type) => { queryParams.robotStatisticsType = type @@ -502,7 +550,7 @@ const goToMap = (item) => { }) } onMounted(() => { - if(route.query.robotNo){ + if (route.query.robotNo) { queryParams.robotNo = route.query.robotNo } getCarList()