作者 dong

按钮管理发送内容修改未textarea 并增加高度,新增修改详情同理,回答框增加高度,

... ... @@ -87,7 +87,14 @@ export const formSchema: FormSchema[] = [
{
label: '发送内容',
field: 'buttonValues',
component: 'Input',
component: 'InputTextArea', // 替换为文本域组件
componentProps: {
autoSize: {
minRows: 1, // 最小行数
maxRows: 6, // 最大行数
},
style: { width: '100%' }, // 宽度自适应
},
required: true,
},
// TODO 主键隐藏字段,目前写死为ID
... ...
... ... @@ -26,7 +26,7 @@
</a-button>
</a-dropdown>
<!-- 高级查询 -->
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
<!-- <super-query :config="superQueryConfig" @search="handleSuperQuery" />-->
</template>
<!--操作栏-->
<template #action="{ record }">
... ...
... ... @@ -33,7 +33,7 @@ export const columns: BasicColumn[] = [
align: 'center',
dataIndex: 'answerType',
customRender: ({ text }) => {
const statusMap ={
const statusMap = {
1: '问题库回答',
2: '模型回答',
3: '未命中',
... ... @@ -55,7 +55,7 @@ export const searchFormSchema: FormSchema[] = [
{
label: '问题',
field: 'question',
component: 'Input',
component: 'Input', // 替换为文本域组件
},
// 新增知识库选择字段
{
... ... @@ -86,7 +86,23 @@ export const searchFormSchema: FormSchema[] = [
{
label: '回答方式',
field: 'answerType',
component: 'Input',
component: 'Select',
componentProps: {
options: [
{
label: '未命中',
value: 1,
},
{
label: '模型回答',
value: 1,
},
{
label: '问题库回答',
value: 1,
},
],
},
},
{
label: '是否存入',
... ... @@ -95,11 +111,11 @@ export const searchFormSchema: FormSchema[] = [
componentProps: {
options: [
{
label: '',
label: '已存入',
value: 1,
},
{
label: '',
label: '未存入',
value: 0,
},
],
... ... @@ -109,16 +125,6 @@ export const searchFormSchema: FormSchema[] = [
//表单数据
export const formSchema: FormSchema[] = [
{
label: '问题',
field: 'question',
component: 'Input',
},
{
label: '回答',
field: 'answer',
component: 'InputTextArea',
},
{
label: '模型名称',
field: 'name', // 注意:这里使用knowledgeId作为字段名
component: 'Input',
... ... @@ -134,6 +140,23 @@ export const formSchema: FormSchema[] = [
},
},
},
{
label: '问题',
field: 'question',
component: 'Input',
},
{
label: '回答',
field: 'answer',
component: 'InputTextArea',
componentProps: {
autoSize: {
minRows: 1, // 最小行数
maxRows: 10, // 最大行数
},
style: { width: '100%' }, // 宽度自适应
},
},
// TODO 主键隐藏字段,目前写死为ID
{
label: '',
... ...
... ... @@ -24,7 +24,7 @@
</a-button>
</a-dropdown>
<!-- 高级查询 -->
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
<!-- <super-query :config="superQueryConfig" @search="handleSuperQuery" />-->
</template>
<!--操作栏-->
<template #action="{ record }">
... ...
... ... @@ -3,7 +3,7 @@
<BasicTable @register="registerTable" :rowSelection="rowSelection">
<template #tableTitle>
<a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined">新增</a-button>
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls">导出</a-button>
<!-- <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls">导出</a-button>-->
<a-button type="primary" preIcon="ant-design:import-outlined" @click="handleOpenImportModal">导入ZIP</a-button>
<a-dropdown v-if="selectedRowKeys.length > 0">
<template #overlay>
... ...
... ... @@ -5,7 +5,7 @@
<!--插槽:table标题-->
<template #tableTitle>
<a-button type="primary" v-auth="'embeddings:embeddings:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
<a-button type="primary" v-auth="'embeddings:embeddings:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<!-- <a-button type="primary" v-auth="'embeddings:embeddings:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>-->
<j-upload-button type="primary" v-auth="'embeddings:embeddings:importWord'" preIcon="ant-design:import-outlined" @click="onImportXls"
>导入</j-upload-button
>
... ... @@ -24,7 +24,7 @@
</a-button>
</a-dropdown>
<!-- 高级查询 -->
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
<!-- <super-query :config="superQueryConfig" @search="handleSuperQuery" />-->
</template>
<!--操作栏-->
<template #action="{ record }">
... ...