fix : 选择框为远程搜索解决卡顿问题

This commit is contained in:
2024-08-07 22:51:04 +08:00
parent cab7311cfb
commit 0250e3008b
12 changed files with 41 additions and 29 deletions

View File

@@ -23,7 +23,8 @@ const searchConfig = ref([
clearable: true,
data: [],
filterable: true,
checkStrictly: true
checkStrictly: true,
remote: true
}
},
{

View File

@@ -110,6 +110,7 @@ const searchConfig = reactive([
props: {
placeholder: '请选择状态',
clearable: true,
filterable:true,
cacheKey: 'demand_summary',
remote: true
}

View File

@@ -54,7 +54,8 @@ const searchConfig = ref([
clearable: true,
data: [],
filterable: true,
checkStrictly: true
checkStrictly: true,
remote:true
}
},
{
@@ -125,6 +126,7 @@ const searchConfig = ref([
placeholder: '请选择状态',
clearable: true,
cacheKey: 'project_filing',
filterable: true,
remote: true
}
},

View File

@@ -3,7 +3,7 @@
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e" label-position="left" label-width="left"></fvForm>
<el-form :model="attachment" inline style="margin-top: 15px">
<el-form-item label="标签" prop="tag">
<el-select v-model="attachment.tag" placeholder="请选择标签" clearable filterable style="width: 300px">
<el-select v-model="attachment.tag" placeholder="请选择标签" clearable filterable remote style="width: 300px">
<el-option
v-for="item in tagsOption"
:key="item.value"

View File

@@ -52,7 +52,8 @@ const searchConfig = ref([
clearable: true,
data: [],
filterable: true,
checkStrictly: true
checkStrictly: true,
remote: true
}
},
{
@@ -123,6 +124,7 @@ const searchConfig = ref([
props: {
placeholder: '请选择状态',
clearable: true,
filterable: true,
cacheKey: 'project_implementation',
remote: true
}

View File

@@ -51,7 +51,8 @@ const searchConfig = ref([
clearable: true,
data: [],
filterable: true,
checkStrictly: true
checkStrictly: true,
remote: true
}
},
{
@@ -121,8 +122,9 @@ const searchConfig = ref([
props: {
placeholder: '请选择状态',
clearable: true,
filterable: true,
remote: true,
cacheKey: 'project_initiation',
remote: true
}
},
// {

View File

@@ -322,4 +322,8 @@ onMounted(async () => {
:deep(.el-table--fit ) {
height: 300px !important;
}
.add-block{
padding: 0 30px 30px 15px;
}
</style>

View File

@@ -31,6 +31,7 @@ const searchConfig = reactive([
props: {
placeholder: '请选择状态',
clearable: true,
filterable:true,
cacheKey: 'special_fund',
remote: true
}