From 012c84b59018018cd75f0b8c70f7492fcb3e3e6f Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 05 八月 2022 16:18:29 +0800
Subject: [PATCH] 添加整改

---
 src/views/search/Searching.vue |   76 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 73 insertions(+), 3 deletions(-)

diff --git a/src/views/search/Searching.vue b/src/views/search/Searching.vue
index d28c842..ddd4328 100644
--- a/src/views/search/Searching.vue
+++ b/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) {

--
Gitblit v1.8.0