From 9fb7246fec6a216c8a922e3c0ed009a60aeb2bfc Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期日, 24 四月 2022 14:52:01 +0800
Subject: [PATCH] Merge pull request #449 from hotcoffie/wvp-28181-2.0
---
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