refactor: add filterable attribute to create_user search fields for improved usability

This commit is contained in:
CaptainB 2025-07-04 12:56:23 +08:00
parent 6bd5b9af6a
commit 57c4f74501
4 changed files with 10 additions and 1 deletions

View File

@ -32,9 +32,10 @@
v-model="search_form.create_user"
@change="getList"
clearable
filterable
style="width: 220px"
>
<el-option v-for="u in user_options" :key="u.id" :value="u.id" :label="u.username"/>
<el-option v-for="u in user_options" :key="u.id" :value="u.id" :label="u.nick_name"/>
</el-select>
</div>
</div>
@ -237,6 +238,7 @@ import useStore from '@/stores'
import {datetimeFormat} from '@/utils/time'
import {loadPermissionApi} from "@/utils/dynamics-api/permission-api.ts";
import {isWorkFlow} from "@/utils/application.ts";
import UserApi from "@/api/user/user.ts";
const {user} = useStore()
@ -317,6 +319,10 @@ function getList() {
onMounted(() => {
getWorkspaceList()
getList()
UserApi.getAllMemberList('').then((res: any) => {
user_options.value = res.data
})
})
</script>

View File

@ -31,6 +31,7 @@
v-else-if="search_type === 'create_user'"
v-model="search_form.create_user"
@change="getList"
filterable
clearable
style="width: 220px"
>

View File

@ -31,6 +31,7 @@
v-else-if="search_type === 'create_user'"
v-model="model_search_form.create_user"
@change="getList"
filterable
clearable
style="width: 220px"
>

View File

@ -31,6 +31,7 @@
v-else-if="search_type === 'create_user'"
v-model="search_form.create_user"
@change="getList"
filterable
clearable
style="width: 220px"
>