perf: 优化模型选择组件
This commit is contained in:
parent
76dac79b2e
commit
1b8b11315c
@ -88,12 +88,18 @@
|
|||||||
:value="item.id"
|
:value="item.id"
|
||||||
class="flex-between"
|
class="flex-between"
|
||||||
>
|
>
|
||||||
<div class="flex">
|
<div class="flex align-center">
|
||||||
<span
|
<span
|
||||||
v-html="relatedObject(providerOptions, label, 'provider')?.icon"
|
v-html="relatedObject(providerOptions, label, 'provider')?.icon"
|
||||||
class="model-icon mr-8"
|
class="model-icon mr-8"
|
||||||
></span>
|
></span>
|
||||||
<span>{{ item.name }}</span>
|
<span>{{ item.name }}</span>
|
||||||
|
<el-tag
|
||||||
|
v-if="item.permission_type === 'PUBLIC'"
|
||||||
|
type="info"
|
||||||
|
class="info-tag ml-8"
|
||||||
|
>公用
|
||||||
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<el-icon class="check-icon" v-if="item.id === applicationForm.model_id"
|
<el-icon class="check-icon" v-if="item.id === applicationForm.model_id"
|
||||||
><Check
|
><Check
|
||||||
|
|||||||
@ -47,13 +47,13 @@
|
|||||||
:value="item.id"
|
:value="item.id"
|
||||||
class="flex-between"
|
class="flex-between"
|
||||||
>
|
>
|
||||||
<div class="flex">
|
<div class="flex align-center">
|
||||||
<span
|
<span
|
||||||
v-html="relatedObject(providerOptions, label, 'provider')?.icon"
|
v-html="relatedObject(providerOptions, label, 'provider')?.icon"
|
||||||
class="model-icon mr-8"
|
class="model-icon mr-8"
|
||||||
></span>
|
></span>
|
||||||
<span>{{ item.name }}</span>
|
<span>{{ item.name }}</span>
|
||||||
<el-tag v-if="item.permission_type === 'PUBLIC'" type="info" class="info-tag">公用</el-tag>
|
<el-tag v-if="item.permission_type === 'PUBLIC'" type="info" class="info-tag ml-8">公用</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<el-icon class="check-icon" v-if="item.id === form.embedding_mode_id"
|
<el-icon class="check-icon" v-if="item.id === form.embedding_mode_id"
|
||||||
><Check
|
><Check
|
||||||
|
|||||||
@ -47,12 +47,15 @@
|
|||||||
:value="item.id"
|
:value="item.id"
|
||||||
class="flex-between"
|
class="flex-between"
|
||||||
>
|
>
|
||||||
<div class="flex">
|
<div class="flex align-center">
|
||||||
<span
|
<span
|
||||||
v-html="relatedObject(providerOptions, label, 'provider')?.icon"
|
v-html="relatedObject(providerOptions, label, 'provider')?.icon"
|
||||||
class="model-icon mr-8"
|
class="model-icon mr-8"
|
||||||
></span>
|
></span>
|
||||||
<span>{{ item.name }}</span>
|
<span>{{ item.name }}</span>
|
||||||
|
<el-tag v-if="item.permission_type === 'PUBLIC'" type="info" class="info-tag ml-8"
|
||||||
|
>公用
|
||||||
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<el-icon class="check-icon" v-if="item.id === chat_data.model_id"
|
<el-icon class="check-icon" v-if="item.id === chat_data.model_id"
|
||||||
><Check
|
><Check
|
||||||
|
|||||||
@ -47,12 +47,15 @@
|
|||||||
:value="item.id"
|
:value="item.id"
|
||||||
class="flex-between"
|
class="flex-between"
|
||||||
>
|
>
|
||||||
<div class="flex">
|
<div class="flex align-center">
|
||||||
<span
|
<span
|
||||||
v-html="relatedObject(providerOptions, label, 'provider')?.icon"
|
v-html="relatedObject(providerOptions, label, 'provider')?.icon"
|
||||||
class="model-icon mr-8"
|
class="model-icon mr-8"
|
||||||
></span>
|
></span>
|
||||||
<span>{{ item.name }}</span>
|
<span>{{ item.name }}</span>
|
||||||
|
<el-tag v-if="item.permission_type === 'PUBLIC'" type="info" class="info-tag ml-8"
|
||||||
|
>公用
|
||||||
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<el-icon class="check-icon" v-if="item.id === form_data.model_id"
|
<el-icon class="check-icon" v-if="item.id === form_data.model_id"
|
||||||
><Check
|
><Check
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user