feat: 应用更新模型设置

This commit is contained in:
wangdan-fit2cloud 2024-03-22 19:04:15 +08:00
parent 62377effe9
commit 7dbdf52906

View File

@ -63,7 +63,7 @@
:label="realatedObject(providerOptions, label, 'provider')?.name"
>
<el-option
v-for="item in value"
v-for="item in value.filter((v: any) => v.status === 'SUCCESS')"
:key="item.id"
:label="item.name"
:value="item.id"
@ -80,6 +80,27 @@
><Check
/></el-icon>
</el-option>
<!-- 不可用 -->
<el-option
v-for="item in value.filter((v: any) => v.status !== 'SUCCESS')"
:key="item.id"
:label="item.name"
:value="item.id"
class="flex-between"
disabled
>
<div class="flex">
<span
v-html="realatedObject(providerOptions, label, 'provider')?.icon"
class="model-icon mr-8"
></span>
<span>{{ item.name }}</span>
<span class="danger">不可用</span>
</div>
<el-icon class="check-icon" v-if="item.id === applicationForm.model_id"
><Check
/></el-icon>
</el-option>
</el-option-group>
<template #footer>
<div class="w-full text-left cursor" @click="openCreateModel()">