样式修改
This commit is contained in:
@@ -106,11 +106,12 @@
|
||||
|
||||
<el-form-item label="索引方式" prop="difyIndexingTechnique" required>
|
||||
<el-radio-group v-model="formData.difyIndexingTechnique">
|
||||
<el-radio value="high_quality">
|
||||
<el-radio class="index-type" value="high_quality">
|
||||
<span class="radio-label">高质量</span>
|
||||
<span class="radio-desc">更精确的检索结果,消耗更多tokens</span>
|
||||
</el-radio>
|
||||
<el-radio
|
||||
class="index-type"
|
||||
value="economy"
|
||||
:disabled="type === 'edit' && knowledge?.difyIndexingTechnique === 'high_quality'"
|
||||
>
|
||||
@@ -162,6 +163,7 @@
|
||||
v-model="formData.rerankingEnable"
|
||||
:active-value="true"
|
||||
:inactive-value="false"
|
||||
inline-prompt
|
||||
active-text="启用"
|
||||
inactive-text="禁用"
|
||||
/>
|
||||
@@ -247,6 +249,7 @@
|
||||
v-model="formData.status"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
inline-prompt
|
||||
active-text="启用"
|
||||
inactive-text="禁用"
|
||||
/>
|
||||
@@ -259,7 +262,7 @@
|
||||
<el-button @click="handleCancel">
|
||||
取消
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -581,7 +584,9 @@ function formatDate(date: string | Date | undefined): string {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.index-type{
|
||||
align-items: center !important;
|
||||
}
|
||||
.avatar-section {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
@@ -652,6 +657,9 @@ function formatDate(date: string | Date | undefined): string {
|
||||
.edit-mode {
|
||||
.knowledge-form {
|
||||
max-width: 600px;
|
||||
.index-type{
|
||||
align-items: center !important;
|
||||
}
|
||||
|
||||
:deep(.el-form-item__label) {
|
||||
font-weight: 500;
|
||||
@@ -685,10 +693,12 @@ function formatDate(date: string | Date | undefined): string {
|
||||
}
|
||||
|
||||
.form-tip {
|
||||
margin-top: 8px;
|
||||
display: inline-block;
|
||||
margin-left: 16px;
|
||||
font-size: 13px;
|
||||
color: #F59E0B;
|
||||
line-height: 1.4;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.form-tip-success {
|
||||
|
||||
Reference in New Issue
Block a user