From 5f63e278ff93d68bb71633032aff381beac55c9a Mon Sep 17 00:00:00 2001
From: chenjinsong <523037378@qq.com>
Date: Thu, 9 Jun 2022 16:01:47 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Ddetection=E5=88=87?=
=?UTF-8?q?=E6=8D=A2=E6=97=B6=E9=97=B4=E5=8D=A1=E6=AD=BB=E7=9A=84=E9=97=AE?=
=?UTF-8?q?=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/table/report/reportTestTable.vue | 4 ++++
src/views/detections/Index.vue | 8 +++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/components/table/report/reportTestTable.vue b/src/components/table/report/reportTestTable.vue
index 1e2d8367..f9aeb157 100644
--- a/src/components/table/report/reportTestTable.vue
+++ b/src/components/table/report/reportTestTable.vue
@@ -114,6 +114,9 @@
{{scope.row.lastTime ? dateFormatByAppearance(scope.row.lastTime) : '-'}}
+
+ {{scope.row[item.prop] || 0}}
+
{{scope.row[item.prop] || '-'}}
@@ -320,6 +323,7 @@ export default {
this.delFlag = true
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.deleteSuccess') })
this.dropDownQueryChange({ tempId: props.row.id })
+ this.$emit('reload')
} else {
this.$message.error(response.msg)
}
diff --git a/src/views/detections/Index.vue b/src/views/detections/Index.vue
index 8eaf2cd2..4a616eab 100644
--- a/src/views/detections/Index.vue
+++ b/src/views/detections/Index.vue
@@ -568,7 +568,13 @@ export default {
dateTimeRangeChange (s, e, v) {
this.timeFilter = { startTime: s, endTime: e, dateRangeValue: v }
},
- search ({ q, metaList }) {
+ search (param) {
+ let q
+ let metaList
+ if (param) {
+ q = param.q
+ metaList = param.metaList
+ }
this.initNoData()
if (q) {
this.q = q