zhanghua
2022-12-13 bc469e094e73cbdd56478d1e51c10093c0a82974
Merge branch 'master' of http://42.193.1.25:9521/r/sccg_ui
2个文件已修改
14 ■■■■ 已修改文件
src/utils/helper.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/intelligentPatrol/studyJudge/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/helper.js
@@ -137,6 +137,6 @@
]
export const RESOURCE_OPTIONS = [
    { label: '人工上报', value: 1 },
    { label: '视频巡查', value: 2 }
    { label: '人工上报', value: 2 },
    { label: '视频巡查', value: 1 }
]
src/views/intelligentPatrol/studyJudge/index.vue
@@ -217,6 +217,11 @@
      })
      .catch((err) => this.$message.error(err));
  },
  mounted() {
    this.timer = setInterval(() => {
      setTimeout(this.getInspectionData, 0)
    }, 1000*10)
  },
  data() {
    const validateCarNumber = (rule, value, callback) => {
      if (value) {
@@ -230,6 +235,7 @@
      }
    };
    return {
      timer:null,
      countData: {
        study: 0,
        review: 0,
@@ -558,6 +564,10 @@
      return y + "-" + m + "-" + d + " " + h + ":" + minute + ":" + second;
    },
  },
  beforeDestroy() {
    clearInterval(this.timer);
    this.timer = null;
  }
};
</script>