From 85da22c4861736f7b0cabbc75daecbe4fea1bf80 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期日, 04 七月 2021 21:01:12 +0800 Subject: [PATCH] 周天更改 --- src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue | 43 ++++++++++++++++++++++++++----------------- 1 files changed, 26 insertions(+), 17 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue index 19aed0e..0b724e1 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue @@ -167,8 +167,8 @@ @change="filterSearchData" > <el-option value label="鍏ㄩ儴"></el-option> - <el-option :value="false" label="鏈叧娉�"></el-option> - <el-option :value="true" label="宸插叧娉�"></el-option> + <el-option :value="'1'" label="鏈叧娉�"></el-option> + <el-option :value="'0'" label="宸插叧娉�"></el-option> </el-select> </div> <div> @@ -315,10 +315,16 @@ <el-table-column label="澶у皬" prop="VideoSize" sortable> <template slot-scope="scope" style="cursor: pointer"> - <div>{{ Math.round((+scope.row.VideoSize) / (1024*1024)) + " MB" }}</div> + <div> + {{ Math.round(+scope.row.VideoSize / (1024 * 1024)) + " MB" }} + </div> </template> </el-table-column> - <el-table-column label="瑙嗛鏃堕棿" prop="StartTime" sortable></el-table-column> + <el-table-column + label="瑙嗛鏃堕棿" + prop="StartTime" + sortable + ></el-table-column> <!-- <el-table-column label="鍒涘缓鏃ユ湡" prop="VideoCreateDate" sortable></el-table-column> --> <el-table-column label="鎿嶄綔"> @@ -543,16 +549,8 @@ this.filterSearchData(); }, //浜岀骇鏌ヨ - filterSearchData() { + filterSearchData(val) { let _this = this; - let isFollow = ""; - if (this.IsFollow === "") { - isFollow = ""; - } else if (!!this.IsFollow) { - isFollow = "1"; - } else { - isFollow = "0"; - } let query = { KeyWord: this.keyword, StartDate: this.searchTime[0], @@ -562,7 +560,7 @@ PageSize: this.showType == "list" ? this.tablePageSize : this.tabPageSize, IsDetail: this.showType == "list", - IsFollow: isFollow, + IsFollow: this.IsFollow , IsOperate: this.IsOperate, }; let filterQuerys = []; @@ -582,7 +580,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 +615,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) => { @@ -689,12 +698,12 @@ toggleFollow(data) { data.IsFollow == "0" ? (data.IsFollow = "1") : (data.IsFollow = "0"); updateFollow({ - id : data.id, + id: data.id, IsFollow: data.IsFollow, }).then((res) => { this.$notify({ type: "success", - message: "宸叉坊鍔犲叧娉�!", + message: data.IsFollow == "0" ? "宸叉坊鍔犲叧娉�!" : "宸插彇娑堝叧娉�!", }); }); }, -- Gitblit v1.8.0