Skip to content

Commit a1f9508

Browse files
perf: advanced template setting style
1 parent 3bae4c5 commit a1f9508

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

ui/src/views/template/component/CreateModelDialog.vue

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@
9191
<p>向量模型:在知识库中对文档内容进行向量化的模型。</p>
9292
<p>语音识别:在应用中开启语音识别后用于语音转文字的模型。</p>
9393
<p>语音合成:在应用中开启语音播放后用于文字转语音的模型。</p>
94-
<p>重排模型:在高级编排应用中使用多路召回时,对候选分段进行重新排序的模型。</p>
94+
<p>
95+
重排模型:在高级编排应用中使用多路召回时,对候选分段进行重新排序的模型。
96+
</p>
9597
<p>图片理解:在高级编排应用中用于图片理解的视觉模型。</p>
9698
<p>图片生成:在高级编排应用中用于图片生成的视觉模型。</p>
9799
</template>
@@ -155,7 +157,11 @@
155157
</DynamicsForm>
156158
</el-tab-pane>
157159
<el-tab-pane label="高级设置" name="advanced-info">
158-
<div class="flex-between mb-8">
160+
<el-empty
161+
v-if="base_form_data.model_params_form?.length === 0"
162+
description="请先选择基础信息的模型类型和基础模型"
163+
/>
164+
<div class="flex-between mb-8" v-else>
159165
<h5>模型参数</h5>
160166
<el-button type="text" @click.stop="openAddDrawer()">
161167
<AppIcon iconName="Plus" class="add-icon" />添加
@@ -215,7 +221,14 @@
215221
<template #footer>
216222
<span class="dialog-footer">
217223
<el-button @click="close">取消</el-button>
218-
<el-button type="primary" @click="submit" :loading="loading"> 添加 </el-button>
224+
<el-button
225+
v-if="base_form_data.model_params_form?.length === 0"
226+
type="primary"
227+
@click="openAddDrawer"
228+
>
229+
添加
230+
</el-button>
231+
<el-button v-else type="primary" @click="submit" :loading="loading"> 添加 </el-button>
219232
</span>
220233
</template>
221234
</el-dialog>
@@ -360,6 +373,8 @@ const submit = () => {
360373
emit('submit')
361374
})
362375
}
376+
}).catch(() => {
377+
MsgError('基础信息有填写错误')
363378
})
364379
}
365380

ui/src/workflow/nodes/text-to-speech-node/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
</el-select>
9898
</el-form-item>
9999
<el-form-item
100+
prop="content_list"
100101
label="选择文本内容"
101102
:rules="{
102103
message: '选择文本内容',

0 commit comments

Comments
 (0)