Skip to content

Commit

Permalink
perf: users use Select2
Browse files Browse the repository at this point in the history
  • Loading branch information
w940853815 committed Oct 17, 2024
1 parent 57920bf commit a8a9318
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions src/components/Form/AutoDataForm/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import BasicTree from '@/components/Form/FormFields/BasicTree.vue'
import JsonEditor from '@/components/Form/FormFields/JsonEditor.vue'
import { assignIfNot } from '@/utils/common'
import TagInput from '@/components/Form/FormFields/TagInput.vue'
import TransferSelect from '@/components/Form/FormFields/TransferSelect.vue'

export class FormFieldGenerator {
constructor(emit) {
Expand Down Expand Up @@ -134,9 +133,6 @@ export class FormFieldGenerator {
case 'comment':
field.el.type = 'textarea'
break
case 'users':
field.component = TransferSelect
field.el.label = field.label
}
return field
}
Expand Down
5 changes: 1 addition & 4 deletions src/views/users/Group/UserGroupCreateUpdate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

<script>
import { GenericCreateUpdatePage } from '@/layout/components'
import TransSelect from '@/components/Form/FormFields/TransferSelect.vue'
export default {
components: {
Expand All @@ -23,7 +22,6 @@ export default {
],
fieldsMeta: {
users: {
component: TransSelect,
el: {
url: '/api/v1/users/users/?fields_size=mini&order=name',
ajax: {
Expand All @@ -38,8 +36,7 @@ export default {
}
}
},
methods: {
}
methods: {}
}
</script>

Expand Down

0 comments on commit a8a9318

Please sign in to comment.