Skip to content

Commit

Permalink
fix(frontend): 资源池主机列表交互优化 TencentBlueKing#8149
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 24708
  • Loading branch information
jinquantianxia committed Nov 25, 2024
1 parent 8d9f499 commit 6ed8de8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@

<template>
<BkSelect
display-key="display_name"
enable-virtual-render
filterable
id-key="bk_biz_id"
:input-search="false"
:list="bizList"
:model-value="defaultValue"
:placeholder="t('请选择所属业务')"
show-selected-icon
@change="handleChange">
<BkOption
<!-- <BkOption
v-for="bizItem in bizList"
:key="bizItem.bk_biz_id"
:label="bizItem.display_name"
:value="bizItem.bk_biz_id" />
:value="bizItem.bk_biz_id" /> -->
<template
v-if="simple"
#extension>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<BkSelect
v-model="currentDbType"
:clearable="false"
:disabled="isDbTypeDisabled"
filterable
:input-search="false"
style="width: 150px"
Expand Down Expand Up @@ -102,7 +101,7 @@
const currentMachine = ref('');
const clusterMachineList = shallowRef<InfoItem['machineList']>([]);
const isDbTypeDisabled = computed(() => props.model.resource_type && props.model.resource_type !== 'PUBLIC');
// const isDbTypeDisabled = computed(() => props.model.resource_type && props.model.resource_type === 'PUBLIC');
const { loading: isResourceSpecLoading, run: fetchResourceSpecDetail } = useRequest(getResourceSpec, {
manual: true,
Expand Down

0 comments on commit 6ed8de8

Please sign in to comment.