luobisheng
2022-11-28 667e1a5b49ffc2f7af9237b4542b1c2e4d00731f
src/views/intelligentPatrol/studyJudge/index.vue
@@ -1,14 +1,13 @@
<template>
  <div class="study-judge">
    <div class="study-judge-header">
      <span>您有1111条待审核报警信息,今日立案0条,再学习0条</span>
      <span>您有1111条待审核报警信息,今日立案0条,再学习{{ currentEvent.review }}条</span>
    </div>
    <div class="study-judge-main">
      <!-- sjm:study-judge-main -->
      <div class="sjm-header">
        <div class="sjm-header-left">
          <span class="moni-name">监控点位名称:中华路XX路口 </span>
          <span class="moni-area">中华街道区域</span>
          <span class="moni-name">监控点位名称: {{ currentEvent.name }} </span>
          <span class="moni-area">{{ currentEvent.street }}</span>
        </div>
        <div class="sjm-header-right">
          <el-button size="small">实时预览</el-button>
@@ -19,9 +18,7 @@
        <div class="sjm-content-left">
          <div class="img-item">
            <span>报警图片</span>
            <img
              src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__67d4d15bfc501319f8377f2ce37bf441.svg"
              alt="">
            <img :src="currentEvent.picData">
            <span>报警时间:2022-09-08 14:23:34</span>
          </div>
          <div class="img-item">
@@ -46,10 +43,10 @@
            </div>
            <el-form ref="currentEvent" label-width="120px" :model="currentEvent" :rules="rules">
              <el-form-item label="事件编号:">
                <span>{{ currentEvent.number }}</span>
                <span>{{ currentEvent.code }}</span>
              </el-form-item>
              <el-form-item label="事件等级:">
                <span>{{ currentEvent.level }}</span>
                <span>{{ currentEvent.grade }}</span>
              </el-form-item>
              <el-form-item label="首次报警时间:">
                <span>{{ currentEvent.firstTime }}</span>
@@ -94,7 +91,27 @@
</template>
<script>
import basecase from "@/api/operate/basecase";
import { FILE_ORIGINAL_URL } from "@/utils";
export default {
  created() {
    basecase.getInspectionData({ current: 1 })
        .then(({ records }) => {
          this.eventList = records;
          this.currentEvent = this.eventList[0];
          if (this.currentEvent.picData) {
            this.currentEvent.picData = `${FILE_ORIGINAL_URL}${this.currentEvent.picData}`;
          }
        })
        .catch(err => this.$message.error(err))
    basecase.getInspectionCountData()
        .then(res => {
          this.currentEvent.review = res.review;
        })
        .catch(err => this.$message.error(err))
  },
  data() {
    const validateAdvice = (rule,value,callback)=>{
      if(value){
@@ -133,18 +150,17 @@
      }
    }
    return {
      eventList: [],
      currentEvent: {
        number: '1233123414141414',
        level: '一般事件',
        firstTime: '2022/09/23 12:00:00',
        recentTime: '2022/09/23/ 12:00:00',
        conntinueTime: '0小时10分钟',
        advice: null,
        type: '',
        bigKind: '',
        smallKind: '',
        carNumber: '',
        tip: ''
        code: null,
        grade: null,
        picData: null,
        street: null,
        urlAddress: null,
        name: null,
        latitude: null,
        longitude: null,
        review: 0
      },
      adviceList: [
        {