From 442e8444e231267267eb76b95510b2a351fbaa37 Mon Sep 17 00:00:00 2001 From: xhf <1424913779@qq.com> Date: Thu, 13 Feb 2025 17:39:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E6=97=B6=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.local | 2 +- src/api/car/index.ts | 5 +- src/api/device/index.ts | 5 + src/views/board/carBoard/index.vue | 6 +- src/views/board/device/index.vue | 30 +-- .../realTimeMap/components/indexPage.vue | 202 ++++++++++++++++-- 6 files changed, 199 insertions(+), 51 deletions(-) diff --git a/.env.local b/.env.local index a3752946..f0650411 100644 --- a/.env.local +++ b/.env.local @@ -4,7 +4,7 @@ NODE_ENV=development VITE_DEV=true # 请求路径 -VITE_BASE_URL='http://192.168.0.74:48080' +VITE_BASE_URL='http://192.168.0.66:48080' # VITE_BASE_URL='http://192.168.0.189:48080' # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务 diff --git a/src/api/car/index.ts b/src/api/car/index.ts index 34b7f398..872c4f94 100644 --- a/src/api/car/index.ts +++ b/src/api/car/index.ts @@ -53,4 +53,7 @@ export const robotPositionGetMapAll = async (params) => { return await request.get({ url: `/system/position-map/getAllMap`, params }) } - +//获得车辆列表 新 +export const getRobotInformationList = async (params) => { + return await request.get({ url: `/system/robot/information/list`, params }) +} diff --git a/src/api/device/index.ts b/src/api/device/index.ts index 53717276..b8afebec 100644 --- a/src/api/device/index.ts +++ b/src/api/device/index.ts @@ -32,3 +32,8 @@ export const deleteDeviceInformation = async (id: number) => { export const deviceNumber = async (params) => { return await request.get({ url: `/system/device/information/deviceNumber`, params }) } + +// 获取设备列表 新不分页 +export const deviceGetInformationList = async (params) => { + return await request.get({ url: `/system/device/information/getInformationList`, params }) +} \ No newline at end of file diff --git a/src/views/board/carBoard/index.vue b/src/views/board/carBoard/index.vue index ea6cc756..0a269a88 100644 --- a/src/views/board/carBoard/index.vue +++ b/src/views/board/carBoard/index.vue @@ -172,8 +172,8 @@ const router = useRouter() // 路由对象 const createEditDialogRef = ref(null) const list = ref([]) const queryParams = reactive({ - pageNo: 1, - pageSize: 100, + // pageNo: 1, + // pageSize: 100, robotNo: undefined }) const spaceBetween = ref(20) @@ -206,7 +206,7 @@ const getCarList = async () => { getCarList() getRobotInformationStatistics() }, 5000) - let res = await CarApi.robotInformationPage(queryParams) + let res = await CarApi.getRobotInformationList(queryParams) // console.log(res.list) list.value = res.list } diff --git a/src/views/board/device/index.vue b/src/views/board/device/index.vue index 21c02d4c..39b31670 100644 --- a/src/views/board/device/index.vue +++ b/src/views/board/device/index.vue @@ -125,8 +125,8 @@ const router = useRouter() // 路由对象 const createEditDialogRef = ref(null) const list = ref([]) const queryParams = reactive({ - pageNo: 1, - pageSize: 100, + // pageNo: 1, + // pageSize: 100, deviceNo: undefined, deviceType: undefined }) @@ -174,27 +174,7 @@ const filterTypeFun = (type, list) => { return type } } -// (1:充电桩,2:输送线,3:码垛机,4:自动门,5:提升机,6:信号灯,7:按钮盒,8:拆垛机) -const formatterDeviceType = (deviceType) => { - switch (deviceType) { - case 1: - return '充电桩' - case 2: - return '输送线' - case 3: - return '码垛机' - case 4: - return '自动门' - case 5: - return '提升机' - case 6: - return '信号灯' - case 7: - return '按钮盒' - case 8: - return '拆垛机' - } -} + const timerRef = ref(null) //查询车辆列表 @@ -207,9 +187,9 @@ const getCarList = async () => { // getCarList() // getRobotInformationStatistics() // }, 5000) - let res = await DeviceApi.deviceInformationPage(queryParams) + let res = await DeviceApi.deviceGetInformationList(queryParams) // console.log(res.list) - list.value = res.list + list.value = res } const carStatistics = ref({ standby: 0, diff --git a/src/views/mapPage/realTimeMap/components/indexPage.vue b/src/views/mapPage/realTimeMap/components/indexPage.vue index 2bab2184..4fa0a2e8 100644 --- a/src/views/mapPage/realTimeMap/components/indexPage.vue +++ b/src/views/mapPage/realTimeMap/components/indexPage.vue @@ -31,22 +31,89 @@