From 1e2d207aea24b5956d5ece95ed4a9db0f59f34d7 Mon Sep 17 00:00:00 2001 From: 648540858 <456panlinlin> Date: 星期五, 22 四月 2022 16:21:05 +0800 Subject: [PATCH] 添加优化后的地图页面,完全一处百度地图相关的api --- web_src/src/components/service/DeviceService.js | 15 +-------------- 1 files changed, 1 insertions(+), 14 deletions(-) diff --git a/web_src/src/components/service/DeviceService.js b/web_src/src/components/service/DeviceService.js index aae0418..6149579 100644 --- a/web_src/src/components/service/DeviceService.js +++ b/web_src/src/components/service/DeviceService.js @@ -32,7 +32,6 @@ getAllDeviceListIteration(deviceList, currentPage, count, callback, errorCallback) { this.getDeviceList(currentPage, count, (data) => { - console.log(data) if (data.list) { deviceList = deviceList.concat(data.list); if (deviceList.length < data.total) { @@ -55,14 +54,13 @@ getAllChannelIteration(isCatalog, deviceId, catalogList, currentPage, count, callback, errorCallback) { this.getChanel(isCatalog, deviceId, currentPage, count, (data) => { - console.log(data) if (data.list) { catalogList = catalogList.concat(data.list); if (catalogList.length < data.total) { currentPage ++ this.getAllChannelIteration(isCatalog, deviceId, catalogList, currentPage, count, callback, errorCallback) }else { - console.log(2222) + console.log(1) if (typeof (callback) == "function") callback(catalogList) } } @@ -94,7 +92,6 @@ getAllSubChannelIteration(isCatalog, deviceId,channelId, catalogList, currentPage, count, callback, errorCallback) { this.getSubChannel(isCatalog, deviceId, channelId, currentPage, count, (data) => { - console.log(data) if (data.list) { catalogList = catalogList.concat(data.list); if (catalogList.length < data.total) { @@ -119,16 +116,6 @@ } }).then((res) =>{ if (typeof (callback) == "function") callback(res.data) - }).catch(errorCallback); - } - getDeviceTree(deviceId, callback, errorCallback){ - this.$axios({ - method: 'get', - url: `/api/device/query/${deviceId}/tree`, - params:{} - }).then((res) =>{ - console.log(res.data) - if (typeof (callback) == "function") callback(res.data.data) }).catch(errorCallback); } } -- Gitblit v1.8.0