heyujie
2021-06-28 deb0e235dd1d59a1d908bf387c6bbc6ebfc833c9
关注与否筛选项修改
1个文件已修改
28 ■■■■ 已修改文件
src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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" ? "已添加关注!" : "已取消关注!",
        });
      });
    },