zhanghua
2023-12-04 e6443cf405d4e950abe35a29e6c133d097fc1ad5
src/views/intelligentPatrol/studyJudge/tablePage.vue
@@ -33,7 +33,9 @@
          </el-date-picker>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="getInspectionData">查询</el-button>
                    <el-button type="primary" @click="getInspectionData"
                        >查询</el-button
                    >
          <el-button type="primary" @click="resetAll">重置</el-button>
        </el-form-item>
      </el-form>
@@ -46,7 +48,7 @@
      :header-cell-style="{
        background: '#F5F5F5',
        'font-weight': '650',
        'line-height': '45px',
                'line-height': '45px'
      }"
      :data="tableData"
      style="width: 100%"
@@ -101,7 +103,10 @@
      v-if="dialogAdd"
      :before-close="handleClose"
    >
      <JudgeIndex :info="videoInspection" :seachData="seachData"></JudgeIndex>
            <JudgeIndex
                :info="videoInspection"
                :seachData="seachData"
            ></JudgeIndex>
    </el-dialog>
  </div>
</template>
@@ -143,10 +148,18 @@
      videoInspection: {},
    };
  },
      watch: {
        '$route'(to, from) { //监听路由是否变化
            this.getInspectionData();
        }
    },
  methods: {
    loadVideo() {
            let path = this.$route.path;
      videoPoint
        .getVideoPointList({
                    type: path.substring(path.length - 1, path.length),
          current: 1,
          size: 1000,
        })
@@ -199,9 +212,12 @@
      }
    },
    getInspectionData() {
            let path = this.$route.path;
      let data = {
        current: this.currentPage,
        pageSize: this.pageSize,
                type: path.substring(path.length - 1, path.length),
        videoId: this.seachData.videoId,
      };
      if (this.seachData.alarmTime) {