From 5c1a5f79314de0708adfdc89db31ea120e9d72ef Mon Sep 17 00:00:00 2001 From: xiaoxie <hotcoffie@163.com> Date: 星期二, 26 四月 2022 15:03:44 +0800 Subject: [PATCH] 优化播放器尺寸调节逻辑: 1.播放器不会大于屏幕高度 2.增加灰色背景色区分播放区域 3.播放器居中 --- 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