From c8b6ed5823fbe8e7eeef2e733859b4406b2ba4c5 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期五, 15 一月 2021 13:22:07 +0800 Subject: [PATCH] Merge pull request #38 from lawrencehj/wvp-28181-2.0 --- 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