|
|
|
<template>
|
|
|
|
<a-card title="智能助手配置" class="config-card">
|
|
|
|
<a-form :model="formState" layout="vertical" ref="formRef" :rules="rules">
|
|
|
|
<a-form
|
|
|
|
:model="formState"
|
|
|
|
layout="horizontal"
|
|
|
|
ref="formRef"
|
|
|
|
:rules="rules"
|
|
|
|
:labelCol="{ span: 3 }"
|
|
|
|
:wrapperCol="{ span: 16 }"
|
|
|
|
class="config-form"
|
|
|
|
>
|
|
|
|
<!-- 向量模型 -->
|
|
|
|
<a-form-item label="向量模型" class="form-item required" name="embeddingId">
|
|
|
|
<a-select
|
|
...
|
...
|
@@ -203,42 +211,78 @@ |
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
.config-card {
|
|
|
|
max-width: 1800px;
|
|
|
|
margin: 20px auto;
|
|
|
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
:deep(.ant-card-head) {
|
|
|
|
background-color: #f0f5ff;
|
|
|
|
border-bottom: 1px solid #e8e8e8;
|
|
|
|
}
|
|
|
|
.config-card {
|
|
|
|
margin: 30px auto;
|
|
|
|
border: 1px solid #f0f0f0;
|
|
|
|
border-radius: 6px;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
/* 标题在左上角,放大,背景与表单一致 */
|
|
|
|
:deep(.ant-card-head) {
|
|
|
|
background-color: #fff; /* 与输入区一致 */
|
|
|
|
border-bottom: 1px solid #f0f0f0;
|
|
|
|
text-align: left;
|
|
|
|
font-size: 20px; /* 字体放大 */
|
|
|
|
//font-weight: 600;
|
|
|
|
padding-left: 24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-item {
|
|
|
|
margin-bottom: 24px;
|
|
|
|
.config-form {
|
|
|
|
margin-left: 16%;
|
|
|
|
width: 60%;
|
|
|
|
margin-top: 2%;
|
|
|
|
}
|
|
|
|
|
|
|
|
:deep(.ant-form-item-label) {
|
|
|
|
font-weight: 500;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* 表单项增加更大间距 */
|
|
|
|
:deep(.ant-form-item) {
|
|
|
|
margin-bottom: 32px; /* 增加间距 */
|
|
|
|
}
|
|
|
|
|
|
|
|
.hint {
|
|
|
|
font-size: 12px;
|
|
|
|
color: #999;
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|
|
|
|
/* Label 样式 */
|
|
|
|
:deep(.ant-form-item-label > label) {
|
|
|
|
font-weight: 500;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
|
|
|
|
.action-buttons {
|
|
|
|
margin-top: 24px;
|
|
|
|
text-align: center;
|
|
|
|
/* 输入框/选择框100%宽度 */
|
|
|
|
:deep(.ant-form-item-control input),
|
|
|
|
:deep(.ant-form-item-control textarea),
|
|
|
|
:deep(.ant-form-item-control .ant-select),
|
|
|
|
:deep(.ant-form-item-control .ant-select-selector) {
|
|
|
|
width: 100% !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-space {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
/* 输入框高度适中 */
|
|
|
|
:deep(.ant-input),
|
|
|
|
:deep(.ant-select-selector),
|
|
|
|
:deep(.ant-input-textarea) {
|
|
|
|
min-height: 38px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-btn {
|
|
|
|
min-width: 120px;
|
|
|
|
}
|
|
|
|
/* 提示文字 */
|
|
|
|
.hint {
|
|
|
|
font-size: 12px;
|
|
|
|
color: #999;
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 按钮区域居中 */
|
|
|
|
.action-buttons {
|
|
|
|
|
|
|
|
margin-top: 24px;
|
|
|
|
margin-left: 10%;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.ant-space {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-btn {
|
|
|
|
min-width: 120px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|