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 }} + + + + +