|
40 | 40 | <template v-if="load.accounts" #notFoundContent> |
41 | 41 | <a-spin size="small" /> |
42 | 42 | </template> |
43 | | - <template v-if="!load.accounts" #option="item"> |
44 | | - <span v-if="item.icon"> |
45 | | - <resource-icon :image="item.icon.base64image" size="1x" style="margin-right: 5px"/> |
| 43 | + <template v-if="!load.accounts" #option="account"> |
| 44 | + <span v-if="account.icon"> |
| 45 | + <resource-icon :image="account.icon.base64image" size="1x" style="margin-right: 5px"/> |
46 | 46 | </span> |
47 | 47 | <block-outlined v-else style="margin-right: 5px" /> |
48 | | - {{ item.value }} |
| 48 | + {{ account.name }} |
49 | 49 | </template> |
50 | 50 | </a-auto-complete> |
51 | 51 | </a-form-item> |
|
126 | 126 | <template v-if="load.users" #notFoundContent> |
127 | 127 | <a-spin size="small" /> |
128 | 128 | </template> |
129 | | - <template v-if="!load.users" #option="item"> |
130 | | - <span v-if="item.icon"> |
131 | | - <resource-icon :image="item.icon.base64image" size="1x" style="margin-right: 5px"/> |
| 129 | + <template v-if="!load.users" #option="user"> |
| 130 | + <span v-if="user.icon"> |
| 131 | + <resource-icon :image="user.icon.base64image" size="1x" style="margin-right: 5px"/> |
132 | 132 | </span> |
133 | 133 | <block-outlined v-else style="margin-right: 5px" /> |
134 | | - {{ item.firstName + ' ' + item.lastName + " (" + item.value + ")" }} |
| 134 | + {{ user.firstName + ' ' + user.lastName + " (" + user.username + ")" }} |
135 | 135 | </template> |
136 | 136 | </a-auto-complete> |
137 | 137 | </a-form-item> |
@@ -273,6 +273,7 @@ export default { |
273 | 273 | return users.map(user => { |
274 | 274 | return { |
275 | 275 | value: user.username, |
| 276 | + username: user.username, |
276 | 277 | firstName: user.firstname, |
277 | 278 | lastName: user.lastname, |
278 | 279 | icon: user.icon |
@@ -301,6 +302,7 @@ export default { |
301 | 302 | return accounts.map(account => { |
302 | 303 | return { |
303 | 304 | value: account.name, |
| 305 | + name: account.name, |
304 | 306 | icon: account.icon |
305 | 307 | } |
306 | 308 | }) |
|
0 commit comments