-
Notifications
You must be signed in to change notification settings - Fork 0
/
coreTable-config.json
136 lines (136 loc) · 3.24 KB
/
coreTable-config.json
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{
"coreTable": {
"name": "coreTable",
"title": "cool table generated ",
"selectable": true,
"singleSelect": false,
"pagination": true,
"enableQuery": true,
"showToolBar": true,
"queryUrl": "http://localhost:7001/api/coretable",
"enableAdd": true,
"addUrl": "http://localhost:7001/api/coretable",
"enableEdit": true,
"editUrl": "http://localhost:7001/api/coretable",
"editWay": "inline",
"enableDelete": true,
"deleteUrl": "http://localhost:7001/api/coretable",
"autoHeight": true,
"height": 500,
"autoWidth": true,
"width": 800,
"hasChildTable": true,
"childTableComponentName": "coreChildTable",
"toolbar": {
"otherButtons": [{
"name": "publish"
}]
},
"columns": [{
"dataIndex": "NO",
"title": "编号",
"isKey": true,
"isLinkUrl": true,
"LinkUrl": "_self",
"isRefKey": false,
"hide": false,
"canQuery": true,
"canEdit": false,
"controlType": "number",
"controlBasicInfo": {}
}, {
"dataIndex": "NAME",
"title": "名称",
"isKey": false,
"isLinkUrl": false,
"isRefKey": false,
"hide": false,
"canQuery": true,
"canEdit": true,
"controlType": "text",
"controlBasicInfo": {}
}, {
"dataIndex": "StartTime",
"title": "开始时间",
"isKey": false,
"isLinkUrl": false,
"isRefKey": false,
"hide": false,
"canQuery": true,
"canEdit": true,
"controlType": "datepicker",
"controlBasicInfo": {}
}, {
"dataIndex": "TYPE",
"title": "类型",
"isKey": false,
"isLinkUrl": false,
"isRefKey": false,
"hide": false,
"canQuery": true,
"canEdit": true,
"controlType": "select",
"renderDataIndex":"TYPE_TEXT",
"controlBasicInfo": {
"items": [{
"value": "cool",
"name": "好",
"desc": "it's great"
}, {
"value": "notSoCool",
"name": "没那么好",
"desc": "it's not very great"
}, {
"value": "bad",
"name": "不好",
"desc": "it's bad"
}]
}
}, {
"dataIndex": "SEX",
"title": "性别",
"isKey": false,
"isLinkUrl": false,
"isRefKey": false,
"hide": false,
"canQuery": true,
"canEdit": true,
"controlType": "radio",
"controlBasicInfo": {
"items": [{
"value": "man",
"name": "男",
"desc": "it's great"
}, {
"value": "feman",
"name": "女",
"desc": "it's not very great"
}]
}
}, {
"dataIndex": "STATUS",
"title": "状态",
"isKey": false,
"isLinkUrl": false,
"isRefKey": false,
"hide": false,
"canQuery": true,
"canEdit": true,
"controlType": "select",
"controlBasicInfo": {
"dataUrl": "http://localhost:3001/getAllStatus"
}
}, {
"dataIndex": "DESC",
"title": "备注",
"isKey": false,
"isLinkUrl": false,
"isRefKey": false,
"hide": false,
"canQuery": true,
"canEdit": true,
"controlType": "textarea",
"controlBasicInfo": {}
}]
}
}