From 8a4e915fe1273e181d44cd152bfcb09446944b18 Mon Sep 17 00:00:00 2001
From: Lawrence <1934378145@qq.com>
Date: 星期四, 14 一月 2021 23:51:59 +0800
Subject: [PATCH] 修改catalog请求还是响应的判断方法
---
web_src/src/components/ParentPlatformList.vue | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/web_src/src/components/ParentPlatformList.vue b/web_src/src/components/ParentPlatformList.vue
index 39aeb3c..37b8b8f 100644
--- a/web_src/src/components/ParentPlatformList.vue
+++ b/web_src/src/components/ParentPlatformList.vue
@@ -89,13 +89,12 @@
};
},
computed: {
-
+
getcurrentDeviceChannels: function() {
-
+
}
},
mounted() {
- this.$refs.chooseChannelDialog.openDialog()
this.initData();
this.updateLooper = setInterval(this.initData, 10000);
},
@@ -138,7 +137,9 @@
});
},
chooseChannel: function(platform) {
- this.$refs.chooseChannelDialog.openDialog()
+ this.$refs.chooseChannelDialog.openDialog(platform.deviceGBId, ()=>{
+ this.initData()
+ })
},
initData: function() {
this.getPlatformList();
@@ -154,7 +155,7 @@
getPlatformList: function() {
let that = this;
- this.$axios.get(`/api/platforms/${that.count}/${that.currentPage - 1}`)
+ this.$axios.get(`/api/platforms/${that.count}/${that.currentPage}`)
.then(function (res) {
that.total = res.data.total;
that.platformList = res.data.list;
--
Gitblit v1.8.0