From 3bbb39d7b66b87488617985b9da5ff6531369929 Mon Sep 17 00:00:00 2001 From: Lawrence <1934378145@qq.com> Date: 星期三, 20 一月 2021 20:25:44 +0800 Subject: [PATCH] 修正级联通道选择编辑关联错误 --- 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..298504b 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.serverGBId, ()=>{ + 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