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" :label="realatedObject(providerOptions, label, 'provider')?.name"
> >
<el-option <el-option
v-for="item in value" v-for="item in value.filter((v: any) => v.status === 'SUCCESS')"
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id" :value="item.id"
@ -80,6 +80,27 @@
><Check ><Check
/></el-icon> /></el-icon>
</el-option> </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> </el-option-group>
<template #footer> <template #footer>
<div class="w-full text-left cursor" @click="openCreateModel()"> <div class="w-full text-left cursor" @click="openCreateModel()">