zhangzengfei
2022-08-05 012c84b59018018cd75f0b8c70f7492fcb3e3e6f
src/views/search/Searching.vue
@@ -78,7 +78,7 @@
              ></el-option>
            </el-select>
          </p>
          <p class="p-level" style="width: 18%; margin-right: 20px">
          <p class="p-level" style="width: 14%; margin-left: 10px">
            <b>事件等级:</b>
            <el-select
              v-model="alarmValues"
@@ -87,11 +87,28 @@
              :disabled="isDisabled"
              collapse-tags
              size="mini"
              style="width: calc(100% - 64px); min-width: 120px"
              style="width: calc(100% - 90px); min-width: 120px"
              placeholder="请选择"
            >
              <el-option
                v-for="item in VideoPhotoData.dictionary.ALARMLEVEL"
                :key="item.id"
                :label="item.name"
                :value="item.value"
              ></el-option>
            </el-select>
          </p>
          <p class="p-level" style="width: 14%; margin-right: 20px">
            <b>排查类型:</b>
            <el-select
              v-model="warningFlag"
              @change="searchingBtn"
              size="mini"
              style="width: calc(100% - 90px); min-width: 120px"
              placeholder="请选择"
            >
              <el-option
                v-for="item in waningOptions"
                :key="item.id"
                :label="item.name"
                :value="item.value"
@@ -266,6 +283,8 @@
import bus from "@/main"
import { getUrlKey } from "@/api/utils.ts"
import SetBox from "@/views/search/components/SetBox"
import { saveWarning } from "@/api/es"
export default {
  name: "RightSide",
  components: {
@@ -290,6 +309,7 @@
      searchImgCardWidth: "",
      tagValues: [],
      alarmValues: [],
      warningFlag: 0,
      taskValues: [],
      showDownBox: false,
      searchTime: [this.$moment().format("YYYY-MM-DD 00:00:00"), this.$moment().format("YYYY-MM-DD HH:mm:ss")],
@@ -343,7 +363,39 @@
            return value.length ? value[0].areaName : ""
          }
        }
      }
      },
      waningOptions: [
        {
          id: 0,
          name: "全部",
          value: 0
        },
        {
          id: 1,
          name: "误报",
          value: 1
        },
        {
          id: 2,
          name: "已整改",
          value: 2
        },
        {
          id: 3,
          name: "未整改",
          value: 3
        },
        {
          id: 4,
          name: "已排查",
          value: 4
        },
        {
          id: 5,
          name: "未排查",
          value: 5
        }
      ]
    }
  },
  created() {
@@ -621,7 +673,21 @@
        this.VideoPhotoData.selectWhites = []
      })
    },
    getDetails(ev, index) {
      // 标记已排查
      if (this.VideoPhotoData.cards[index].activeObject.warningFlag == 0) {
        saveWarning({
          warningFlag: 4,
          id: this.VideoPhotoData.cards[index].activeObject.id,
          correctionDescription: ""
        }).then((rsp) => {
          if (rsp && rsp.success) {
            this.VideoPhotoData.cards[index].activeObject.warningFlag = 4
          }
        })
      }
      //let obj = this.CardList.datalist[index];
      this.CardList.datalist = this.VideoPhotoData.cards
      let obj = this.CardList.datalist[index]
@@ -696,8 +762,12 @@
      this.VideoPhotoData.queryAlarmlevel = this.stringToNum()
      // 时间范围
      this.VideoPhotoData.searchTime = this.format(this.searchTime)
      // 排查登记
      this.VideoPhotoData.warningFlag = this.warningFlag
      //this.VideoPhotoData.inputValue = this.searchText;
      this.VideoPhotoData.showType = this.showType
      if (!this.VideoPhotoData.uploadType) {