|
...
|
...
|
@@ -18,6 +18,37 @@ export const columns: BasicColumn[] = [ |
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'name',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '提问者',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'createBy',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '提问时间',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'createTime',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '回答方式',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'answerType',
|
|
|
|
customRender: ({ text }) => {
|
|
|
|
const statusMap ={
|
|
|
|
1: '问题库回答',
|
|
|
|
2: '模型回答',
|
|
|
|
3: '未命中',
|
|
|
|
};
|
|
|
|
return statusMap[text];
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '是否存入问题库',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'isStorage',
|
|
|
|
customRender: ({ text }) => {
|
|
|
|
return text === 1 ? '已存入' : '未存入';
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|
|
|
|
//查询数据
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
...
|
...
|
@@ -41,6 +72,39 @@ export const searchFormSchema: FormSchema[] = [ |
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '提问时间',
|
|
|
|
field: 'createTimeStr',
|
|
|
|
component: 'RangePicker', // 改用支持时间的组件
|
|
|
|
componentProps: {
|
|
|
|
showTime: true, // 启用时间选择
|
|
|
|
format: 'YYYY-MM-DD HH:mm:ss', // 日期时间格式
|
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', // 绑定值格式
|
|
|
|
placeholder: ['开始时间', '结束时间'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '回答方式',
|
|
|
|
field: 'answerType',
|
|
|
|
component: 'Input',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '是否存入',
|
|
|
|
field: 'isStorage',
|
|
|
|
component: 'Select',
|
|
|
|
componentProps: {
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
label: '是',
|
|
|
|
value: 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '否',
|
|
|
|
value: 0,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|
|
|
|
//表单数据
|
|
|
|
export const formSchema: FormSchema[] = [
|
...
|
...
|
|