File tree Expand file tree Collapse file tree 5 files changed +15
-12
lines changed
system-chat-user/group/component Expand file tree Collapse file tree 5 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -3728,7 +3728,7 @@ msgstr ""
37283728#: apps/models_provider/impl/xinference_model_provider/credential/tti.py:14
37293729#: apps/models_provider/impl/zhipu_model_provider/credential/tti.py:15
37303730msgid "Image size"
3731- msgstr "每页大小 "
3731+ msgstr "生成图像的宽高像素 "
37323732
37333733#: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/tti.py:20
37343734#: apps/models_provider/impl/azure_model_provider/credential/tti.py:15
Original file line number Diff line number Diff line change @@ -3728,7 +3728,7 @@ msgstr ""
37283728#: apps/models_provider/impl/xinference_model_provider/credential/tti.py:14
37293729#: apps/models_provider/impl/zhipu_model_provider/credential/tti.py:15
37303730msgid "Image size"
3731- msgstr "每頁大小 "
3731+ msgstr "生成图像的宽高像素 "
37323732
37333733#: apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/tti.py:20
37343734#: apps/models_provider/impl/azure_model_provider/credential/tti.py:15
Original file line number Diff line number Diff line change 7373 <div class =" flex align-center" style =" display : inline-flex " >
7474 <div class =" mr-4" >
7575 <span >{{ $t('views.model.modelForm.base_model.label') }} </span >
76- <span class =" color-danger ml-4" >{{
76+ <span class =" color-danger ml-4" style = " color : red " >{{
7777 $t('views.model.modelForm.base_model.tooltip')
7878 }}</span >
7979 </div >
Original file line number Diff line number Diff line change @@ -51,23 +51,26 @@ const form = ref<{ user: string[] }>({
5151
5252const optionLoading = ref (false )
5353const chatUserList = ref <ChatUserItem []>([])
54-
54+ const originalChatUserList = ref < ChatUserItem []>([]);
5555async function getChatUserList() {
5656 try {
5757 const res = await loadPermissionApi (' chatUser' ).getChatUserList (optionLoading )
58- chatUserList .value = res .data
58+ originalChatUserList .value = res .data ;
59+ chatUserList .value = [... res .data ];
5960 } catch (e ) {
6061 console .error (e )
6162 }
6263}
6364
64- const filterUser = (query : string , item : ChatUserItem ) => {
65- if (! query ) return true ;
65+ const filterUser = (query : string ) => {
66+ if (! query ) {
67+ chatUserList .value = originalChatUserList .value ;
68+ return ;
69+ }
70+
6671 const q = query .toLowerCase ();
67- return (
68- item .nick_name ?.toLowerCase ().includes (q ) ||
69- item .username ?.toLowerCase ().includes (q ) ||
70- false
72+ chatUserList .value = originalChatUserList .value .filter (
73+ (item ) => item .nick_name ?.toLowerCase ().includes (q ) || item .username ?.toLowerCase ().includes (q )
7174 );
7275};
7376
Original file line number Diff line number Diff line change 33 v-model =" dialogVisible" :close-on-click-modal =" false" :close-on-press-escape =" false" :destroy-on-close =" true" >
44 <el-form label-position =" top" ref =" formRef" :rules =" rules" :model =" form" require-asterisk-position =" right" @submit.prevent >
55 <el-form-item :label =" $t('views.chatUser.group.name')" prop =" name" >
6- <el-input v-model =" form.name" maxlength =" 64 "
6+ <el-input v-model =" form.name" maxlength =" 128 " show-word-limit
77 :placeholder =" `${$t('common.inputPlaceholder')}${$t('views.chatUser.group.name')}`" />
88 </el-form-item >
99 </el-form >
You can’t perform that action at this time.
0 commit comments