From b036dae92aeed291930f0efd8cf276499ebfb882 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期五, 25 六月 2021 19:03:22 +0800 Subject: [PATCH] 修复用户权限获取方式错误的bug --- src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue index 19aed0e..b683cd5 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue @@ -582,7 +582,6 @@ if (_this.showType == "list") { _this.tableTotal = res.total; _this.tableData = res.data; - debugger; } else { _this.tabTotal = res.total; _this.tabData = res.data; @@ -618,6 +617,18 @@ IsFollow: this.IsFollow, IsOperate: this.IsOperate, }; + let filterQuerys = []; + this.checkedConfigs.forEach((config) => { + let checkedOpts = config.data.filter((option) => option.isChecked); + if (checkedOpts.length) { + var linkOpts = checkedOpts.map((opt) => opt.name); + linkOpts = linkOpts.join(","); + let obj = {}; + obj[config.NameEn] = linkOpts; + filterQuerys.push(obj); + } + }); + Object.assign(query, ...filterQuerys); this.optionalConfigs = []; this.highLevelConfigs = []; getlstInit(query).then((res) => { @@ -694,7 +705,7 @@ }).then((res) => { this.$notify({ type: "success", - message: "宸叉坊鍔犲叧娉�!", + message: data.IsFollow == "0"? "宸叉坊鍔犲叧娉�!":"宸插彇娑堝叧娉�!", }); }); }, -- Gitblit v1.8.0