From deb0e235dd1d59a1d908bf387c6bbc6ebfc833c9 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期一, 28 六月 2021 20:23:43 +0800
Subject: [PATCH] 关注与否筛选项修改

---
 src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue |   28 +++++++++++++---------------
 1 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
index b683cd5..31630b9 100644
--- a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
+++ b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
@@ -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 ? "0" : "1",
         IsOperate: this.IsOperate,
       };
       let filterQuerys = [];
@@ -617,7 +615,7 @@
         IsFollow: this.IsFollow,
         IsOperate: this.IsOperate,
       };
-       let filterQuerys = [];
+      let filterQuerys = [];
       this.checkedConfigs.forEach((config) => {
         let checkedOpts = config.data.filter((option) => option.isChecked);
         if (checkedOpts.length) {
@@ -700,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:  data.IsFollow == "0"? "宸叉坊鍔犲叧娉�!":"宸插彇娑堝叧娉�!",
+          message: data.IsFollow == "0" ? "宸叉坊鍔犲叧娉�!" : "宸插彇娑堝叧娉�!",
         });
       });
     },

--
Gitblit v1.8.0