fix: 修复项目数量超过400后,编辑用户不能正常显示项目名的问题

--bug=1027338 --user=刘瑞斌 【系统设置】github#25143,当项目数量过多时,用户授权用户组出现下拉列表不显示项目名称 https://www.tapd.cn/55049933/s/1386033
This commit is contained in:
CaptainB 2023-06-26 10:55:45 +08:00 committed by 刘瑞斌
parent e30f7ef25f
commit d8549c278e
1 changed files with 2 additions and 8 deletions

View File

@ -48,7 +48,7 @@
:prop="'groups.' + index + '.ids'" :prop="'groups.' + index + '.ids'"
:rules="{required: true, message: $t('workspace.select'), trigger: 'change'}" :rules="{required: true, message: $t('workspace.select'), trigger: 'change'}"
> >
<el-select filterable v-model="group.ids" :placeholder="$t('workspace.select')" multiple <el-select filterable v-model="group.ids" :placeholder="$t('system_user.search_get_more_tip')" multiple
:filter-method="(value) => filterWorkspaceOption(value, group)" :filter-method="(value) => filterWorkspaceOption(value, group)"
@visible-change="(value) => resetWorkspaceOption(value, group)" @visible-change="(value) => resetWorkspaceOption(value, group)"
class="edit-user-select" @change="updateWorkSpace(group.index,group.type)"> class="edit-user-select" @change="updateWorkSpace(group.index,group.type)">
@ -57,9 +57,6 @@
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id"> :value="item.id">
<div style="text-align: center; color: #8a8b8d;" v-if="group.showSearchGetMore">
{{ $t('system_user.search_get_more_tip') }}
</div>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -69,7 +66,7 @@
:prop="'groups.' + index + '.ids'" :prop="'groups.' + index + '.ids'"
:rules="{required: true, message: $t('user.select_project'), trigger: 'change'}" :rules="{required: true, message: $t('user.select_project'), trigger: 'change'}"
> >
<el-select filterable v-model="group.ids" :placeholder="$t('user.select_project')" multiple <el-select filterable v-model="group.ids" :placeholder="$t('system_user.search_get_more_tip')" multiple
:filter-method="(value) => filterProjectOption(value, group)" :filter-method="(value) => filterProjectOption(value, group)"
@visible-change="(value) => resetProjectOption(value, group)" @visible-change="(value) => resetProjectOption(value, group)"
class="edit-user-select" @change="setWorkSpaceIds(group.ids,group.projects)"> class="edit-user-select" @change="setWorkSpaceIds(group.ids,group.projects)">
@ -78,9 +75,6 @@
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id"> :value="item.id">
<div style="text-align: center; color: #8a8b8d;" v-if="group.showSearchGetMore">
{{ $t('system_user.search_get_more_tip') }}
</div>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>