From e7ce285475a1355eeaeaba1855e3cd615eafa13b Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期五, 24 十一月 2023 11:49:19 +0800 Subject: [PATCH] 1.修改了统计异常类型聚集度的具体异常个数的逻辑 --- src/sfc/ExceptionType.vue | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/sfc/ExceptionType.vue b/src/sfc/ExceptionType.vue index 0e14d3d..3bcfe2d 100644 --- a/src/sfc/ExceptionType.vue +++ b/src/sfc/ExceptionType.vue @@ -8,6 +8,7 @@ --> <script> +import exceptionApi from '@/api/exceptionApi.js' export default { props: { // 绂佺敤 @@ -37,7 +38,6 @@ mounted() { this.$watch(() => [this.exception], () => { if (this.exception != -1) { - console.log('寮傚父绫诲瀷锛�',this.exception) this.checkedList.push(this.exception) } @@ -47,19 +47,23 @@ methods: { // 鑾峰彇涓嶅悓鐨勫紓甯稿悕绉� getExceptionType() { - this.$http.get('/dust/exceptiontype').then((response) => { - // this.exceptionType = response.data.data - response.data.data.forEach((item) => { - this.exceptionType.push(item.exceptionType) - }) - // console.log('鑾峰彇鍒扮殑寮傚父绫诲瀷锛�',this.exceptionType); + // exceptionApi.queryExceptionType().then((response) => { + // response.data.data.forEach((item) => { + // this.exceptionType.push(item.exceptionType) + // }) + + // let a = ['0', '1', '2', '3', '4', '5', '6', '7','8'] + // a.forEach((item) => { + // if (this.exceptionType.indexOf(item) == -1) { + // this.exceptionType.push(item) + // } + // }) + // }) + let a = ['0', '1', '2', '3', '4', '5', '6', '7','8'] a.forEach((item) => { - if (this.exceptionType.indexOf(item) == -1) { this.exceptionType.push(item) - } }) - }) }, handleCheckAllChange(val) { this.checkedList = val ? this.exceptionType : [] -- Gitblit v1.9.3