From d56170104963948dd95b4b4b02ff86f76c9bac17 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Fri, 16 Aug 2024 11:04:13 +0800 Subject: [PATCH] perf: Ticket flow rule user display name(username) --- src/views/tickets/TicketFlow/FlowRuleField.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/tickets/TicketFlow/FlowRuleField.vue b/src/views/tickets/TicketFlow/FlowRuleField.vue index c5f9c04c0..2b78e76ca 100644 --- a/src/views/tickets/TicketFlow/FlowRuleField.vue +++ b/src/views/tickets/TicketFlow/FlowRuleField.vue @@ -48,7 +48,12 @@ export default { } ], select2Option: { - url: '/api/v1/users/users/?oid=root' + url: '/api/v1/users/users/?oid=root', + ajax: { + transformOption: (item) => { + return { label: item.name + '(' + item.username + ')', value: item.id } + } + } }, fields: [ ]