Repository navigation
fix(audit): distinguish same-name users in the operator filter - #1530
Closed
dataeaseShu wants to merge 1 commit into
Closed
dataeaseShu wants to merge 1 commit into
dataeaseShu wants to merge 1 commit into
Conversation
The operator filter keyed options and labels by display name only, so two users with the same name rendered as duplicate v-for keys with identical labels: they could not be told apart, and searching by account matched nothing. Key options by id, let an option carry its own label, and show "name (account)" when the two differ. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
Author
|
按讨论先关闭,等确认评论指向的页面后再决定是否重开。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v-forkey and the option label by display name. Two users sharing a name rendered as duplicate keys with identical labels, so they could not be told apart, and typing an account matched nothing because the label never contained it.DrawerFilteraccepts an optional per-optionlabel; the audit page builds名称 (账号)when the two differ (and plain name when they are the same), making same-name users distinguishable and account search work.Test plan
ui501_0487)能匹配到对应用户,输入姓名也能匹配npx vue-tsc -b与npx eslint src/components/drawer-filter/src/DrawerFilter.vue src/views/system/audit/index.vue通过🤖 Generated with Claude Code