ZdyRag.data.ts
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
// 列表数据
export const columns: BasicColumn[] = [
{
title: 'ID',
align: 'center',
dataIndex: 'id',
width: 200,
},
{
title: '文本内容',
align: 'center',
dataIndex: 'text',
width: 300,
},
{
title: '文件名称',
align: 'center',
dataIndex: 'docName',
width: 150,
},
{
title: '知识ID',
align: 'center',
dataIndex: 'knowledgeId',
width: 150,
},
{
title: '文档ID',
align: 'center',
dataIndex: 'docId',
width: 150,
},
{
title: '索引',
align: 'center',
dataIndex: 'index',
width: 80,
},
{
title: '相似度',
align: 'center',
dataIndex: 'similarity',
width: 100,
},
];
// 查询数据
export const searchFormSchema: FormSchema[] = [];
// 表单数据
export const formSchema: FormSchema[] = [
{
label: 'text',
field: 'text',
component: 'Input',
},
{
label: '',
field: 'id',
component: 'Input',
show: false,
},
];
// 高级查询数据
export const superQuerySchema = {
name: { title: 'text', order: 0, view: 'text', type: 'string' },
};
/**
* 流程表单调用这个方法获取formSchema
* @param param
*/
export function getBpmFormSchema(_formData): FormSchema[] {
return formSchema;
}