odc.xiaohui
2022-12-15 cae7f403bb70f6c2752bedacbceb55e6f2c79891
src/views/intelligentPatrol/studyJudge/index.vue
@@ -1,31 +1,47 @@
<template>
  <div class="study-judge">
    <div class="study-judge-header">
      <span
        >您有<span @click="openDialogTable">{{ countData.review }}</span
        >条待审核报警信息,今日立案{{ countData.register }}条,再学习{{
          countData.study
        }}条</span
      >
    </div>
    <!--    <div class="study-judge-header">-->
    <!--      <span-->
    <!--        >您有{{ countData.review }}条待审核报警信息,今日立案{{-->
    <!--          countData.register-->
    <!--        }}条,再学习{{ countData.study }}条</span-->
    <!--      >-->
    <!--    </div>-->
    <div class="study-judge-main">
      <div class="sjm-header">
        <div class="sjm-header-left">
          <span class="moni-name">监控点位名称: {{ currentEvent.name }} </span>
          <span class="moni-area">{{ currentEvent.street }}</span>
          <span>{{ currentEvent.address }}</span>
        </div>
        <div class="sjm-header-right">
          <el-button size="small" @click="createVideo(currentEvent, 'live')"
            >实时预览
          </el-button>
          <el-button size="small" @click="createVideo(currentEvent, 'playback')"
            >录像回放
          </el-button>
        </div>
      </div>
      <!--      <div class="sjm-header">-->
      <!--        <div class="sjm-header-left">-->
      <!--          <span class="moni-name">监控点位名称: {{ currentEvent.name }} </span>-->
      <!--          <span class="moni-area">{{ currentEvent.street }}</span>-->
      <!--          <span>{{ currentEvent.address }}</span>-->
      <!--        </div>-->
      <!--        <div class="sjm-header-right">-->
      <!--          <el-button size="small" @click="createVideo(currentEvent, 'live')"-->
      <!--            >实时预览</el-button-->
      <!--          >-->
      <!--          <el-button size="small" @click="createVideo(currentEvent, 'playback')"-->
      <!--            >录像回放</el-button-->
      <!--          >-->
      <!--        </div>-->
      <!--      </div>-->
      <div class="sjm-content">
        <div class="sjm-content-left">
          <!--          <div class="sjm-header-left">-->
          <!--            <span class="moni-name">监控点位名称: {{ currentEvent.name }} </span>-->
          <!--            <span class="moni-area">{{ currentEvent.street }}</span>-->
          <!--            <span>{{ currentEvent.address }}</span>-->
          <!--          </div>-->
          <span @click="openDialogTable" class="count-data-span"
          >您有{{ countData.review }}条待审核报警信息,今日立案{{
              countData.register
            }}条,再学习{{ countData.study }}条</span
          >
          <div class="sjm-header-left">
            <span class="moni-name"
              >监控点位名称: {{ currentEvent.name }}
            </span>
            <span class="moni-area">{{ currentEvent.street }}</span>
            <span>{{ currentEvent.address }}</span>
          </div>
          <div
            class="img-item"
            v-for="(item, index) in imageList"
@@ -40,19 +56,49 @@
          <div class="img-item" v-for="item in imageList" :key="item.id">
            <img :src="item" />
          </div>
          <el-form
            ref="currentEvent"
            label-width="120px"
            :model="eventInfoData"
            :rules="rules"
            label-position="left"
            class="left-form"
          >
            <el-form-item label="事件编号:">
              <span>{{ currentEvent.code }}</span>
            </el-form-item>
            <el-form-item label="事件等级:">
              <span>{{ currentEvent.grade }}</span>
            </el-form-item>
            <el-form-item label="首次报警时间:">
              <span>{{ currentEvent.alarmTime }}</span>
            </el-form-item>
            <el-form-item label="最近报警时间:">
              <span>{{ currentEvent.currentAlarmTime }}</span>
            </el-form-item>
            <el-form-item label="持续时间:">
              <span>{{ currentEvent.conntinueTime }}</span>
            </el-form-item>
          </el-form>
        </div>
        <div class="sjm-content-center">
          <div class="map">
            <MyMap :point="point" :zoom="zoom" :mark="mark"></MyMap>
            <!-- <iframe
              style="height: 488px; min-width: 460px"
              src="https://183.245.159.161:8282/OneMap/index.html#/OneMap?code=2&clientVersion=&skin=white&locale=zh&otherAuthor=allowable"
            ></iframe> -->
          </div>
          <!-- <iframe src="https://183.245.159.161:8282/OneMap/index.html#/OneMap?code=2&clientVersion=&skin=white&locale=zh&otherAuthor=allowable"></iframe> -->
        </div>
        <div class="sjm-content-right">
          <div class="card-box">
            <div class="but-live">
              <el-button size="small" @click="createVideo(currentEvent, 'live')"
                >实时预览</el-button
              >
              <el-button
                size="small"
                @click="createVideo(currentEvent, 'playback')"
                >录像回放</el-button
              >
            </div>
            <div class="card-header">
              <span>报警记录--{{ currentEvent.algoName }}</span>
            </div>
@@ -62,21 +108,21 @@
              :model="eventInfoData"
              :rules="rules"
            >
              <el-form-item label="事件编号:">
                <span>{{ currentEvent.code }}</span>
              </el-form-item>
              <el-form-item label="事件等级:">
                <span>{{ currentEvent.grade }}</span>
              </el-form-item>
              <el-form-item label="首次报警时间:">
                <span>{{ currentEvent.alarmTime }}</span>
              </el-form-item>
              <el-form-item label="最近报警时间:">
                <span>{{ currentEvent.currentAlarmTime }}</span>
              </el-form-item>
              <el-form-item label="持续时间:">
                <span>{{ currentEvent.conntinueTime }}</span>
              </el-form-item>
              <!--              <el-form-item label="事件编号:">-->
              <!--                <span>{{ currentEvent.code }}</span>-->
              <!--              </el-form-item>-->
              <!--              <el-form-item label="事件等级:">-->
              <!--                <span>{{ currentEvent.grade }}</span>-->
              <!--              </el-form-item>-->
              <!--              <el-form-item label="首次报警时间:">-->
              <!--                <span>{{ currentEvent.alarmTime }}</span>-->
              <!--              </el-form-item>-->
              <!--              <el-form-item label="最近报警时间:">-->
              <!--                <span>{{ currentEvent.currentAlarmTime }}</span>-->
              <!--              </el-form-item>-->
              <!--              <el-form-item label="持续时间:">-->
              <!--                <span>{{ currentEvent.conntinueTime }}</span>-->
              <!--              </el-form-item>-->
              <el-form-item label="关联店铺" prop="store">
                <el-select
                  v-model="eventInfoData.store"
@@ -103,8 +149,8 @@
                    :label="item.id"
                    v-for="item in stateList"
                    :key="item.id"
                    >{{ item.label }}
                  </el-radio>
                    >{{ item.label }}</el-radio
                  >
                </el-radio-group>
              </el-form-item>
              <el-form-item label="大类名称:" prop="categoryId">
@@ -151,11 +197,11 @@
                <el-button
                  :disabled="currentPage === 1"
                  @click="pageChange('prev')"
                  >上一条
                </el-button>
                  >上一条</el-button
                >
                <el-button @click.native.prevent="handleConfirm"
                  >确认
                </el-button>
                  >确认</el-button
                >
                <el-button @click="pageChange('next')">下一条</el-button>
              </el-form-item>
            </el-form>
@@ -183,7 +229,7 @@
      </div>
    </el-dialog>
    <el-dialog :visible.sync="isShowTable" title="报警信息" width="1200px">
      <inspection-table />
      <inspection-table/>
    </el-dialog>
  </div>
</template>
@@ -196,11 +242,10 @@
import { validateCarNum } from "@/utils/validate";
import MyDispatch from "@/components/dispatch";
import InspectionTable from "@/views/intelligentPatrol/studyJudge/inspectionTable/index.vue";
import MyMap from "@/components/map";
export default {
  components: { MyDispatch, MyMap, InspectionTable },
  components: { MyDispatch, MyMap,InspectionTable },
  created() {
    this.getInspectionData();
    this.initEventParams();
@@ -251,13 +296,13 @@
      }
    };
    return {
      isShowTable:false,
      timer: null,
      countData: {
        study: 0,
        review: 0,
        register: 0,
      },
      isShowTable: false,
      currentEvent: {},
      stateList: [
        {
@@ -329,8 +374,8 @@
    };
  },
  methods: {
    openDialogTable() {
      this.isShowTable = true;
    openDialogTable(){
      this.isShowTable = true
    },
    pageChange(type) {
      if (type === "next") {
@@ -625,6 +670,7 @@
          margin-left: 4vw;
        }
      }
      .sjm-header-right {
        flex: 1;
        display: flex;
@@ -643,11 +689,17 @@
      .sjm-content-left {
        line-height: 4.8vh;
        .count-data-span{
          cursor: pointer;
          color: blue;
        }
        .left-form > ::v-deep.el-form-item__label {
          font-size: 16px !important;
        }
        .img-item {
          display: flex;
          flex-direction: column;
          img {
            width: 15vw;
            height: 20vh;
@@ -658,12 +710,15 @@
          margin-top: 2vh;
        }
      }
      .sjm-content-center {
        width: calc(100% - 800px);
        width: calc(100% - 920px);
      }
      .sjm-content-right {
        .card-box {
          .but-live {
            padding-left: 48px;
            line-height: 4.8vh;
          }
          .card-header {
            padding-left: 48px;
            line-height: 4.8vh;