feat(verbal-trick): 新增增强话术功能
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
<fvFormDialog ref="formDialogRef" width="400" :title="dialogTitle"
|
||||
<fvFormDialog ref="formDialogRef" width="550" :title="dialogTitle"
|
||||
:form-schema="formSchema" :form-rules="formRules"
|
||||
@dialogSubmit="handleSubmitAddressBook"></fvFormDialog>
|
||||
</div>
|
||||
@@ -78,16 +78,16 @@ const props = defineProps({
|
||||
},
|
||||
})
|
||||
const formDialogRef = ref()
|
||||
const dialogTitle = ref("添加问题答案");
|
||||
const dialogTitle = ref("训练知识库");
|
||||
const formRules = reactive({
|
||||
answer: [
|
||||
{required: true, message: "答案不能为空", trigger: "blur"},
|
||||
{required: true, message: "知识校准不能为空", trigger: "blur"},
|
||||
],
|
||||
});
|
||||
const formSchema = computed(() => {
|
||||
return [
|
||||
{
|
||||
label: '问题',
|
||||
label: '知识内容',
|
||||
prop: 'query',
|
||||
component: 'el-input',
|
||||
colProps: {
|
||||
@@ -95,16 +95,18 @@ const formSchema = computed(() => {
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '答案',
|
||||
label: '知识校准',
|
||||
prop: 'answer',
|
||||
component: 'el-input',
|
||||
colProps: {
|
||||
span: 24
|
||||
},
|
||||
props: {
|
||||
placeholder: '请输入答案',
|
||||
placeholder: '请输入知识校准',
|
||||
clearable: true,
|
||||
}
|
||||
type: 'textarea',
|
||||
rows: 4,
|
||||
},
|
||||
},
|
||||
]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user