From 6b8e8ab5d8f4274e5cea60fdfa4a51c4010d3b9d Mon Sep 17 00:00:00 2001
From: zzc <1761997216@qq.com>
Date: Wed, 22 Apr 2026 19:13:28 +0800
Subject: [PATCH] fix: message obj
---
src/views/index/components/TrackingCharts.vue | 18 ++++++++++++++++--
.../accessLogManagement/index.vue | 8 +++++++-
2 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/src/views/index/components/TrackingCharts.vue b/src/views/index/components/TrackingCharts.vue
index 8152c9f..12f5f6c 100644
--- a/src/views/index/components/TrackingCharts.vue
+++ b/src/views/index/components/TrackingCharts.vue
@@ -65,7 +65,7 @@
重置
去掉熟人
只显示有用户请求
- 只显示无用户请求
+ 只显示无用户请求
@@ -187,7 +187,8 @@
data() {
return {
excludeAcquaintance: false,
- onlyUserId: null, // null: all, true: only with user, false: only without user
+ onlyUserId: null, // null: all, true: only with user
+ onlyNoUserId: null, // null: all, true: only without user
eventNameMap,
eventTypeMap,
appMap,
@@ -292,6 +293,9 @@
if (this.onlyUserId !== null) {
params.onlyUserId = this.onlyUserId
}
+ if (this.onlyNoUserId !== null) {
+ params.onlyNoUserId = this.onlyNoUserId
+ }
const { data } = await getTrackingLogsList(params)
this.list = data.list || []
@@ -343,6 +347,16 @@
this.onlyUserId = null // Toggle off if already selected
} else {
this.onlyUserId = value
+ this.onlyNoUserId = null // 互斥
+ }
+ this.fetchData()
+ },
+ toggleOnlyNoUserId() {
+ if (this.onlyNoUserId === true) {
+ this.onlyNoUserId = null // Toggle off if already selected
+ } else {
+ this.onlyNoUserId = true
+ this.onlyUserId = null // 互斥
}
this.fetchData()
},
diff --git a/src/views/personnelManagement/accessLogManagement/index.vue b/src/views/personnelManagement/accessLogManagement/index.vue
index e4ae9a4..cc43d6f 100644
--- a/src/views/personnelManagement/accessLogManagement/index.vue
+++ b/src/views/personnelManagement/accessLogManagement/index.vue
@@ -24,7 +24,7 @@
- 应用
+ 微信小程序
后台
@@ -39,8 +39,13 @@
{{ row.userName || row.userId }}
+
+
+
+
+