zhangyanpeng
2024-05-29 1f227a1cf627526701c652ba84bae3e430bba8d3
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
pageConfigData={
    tableFields:{
        page: [
                    {field: "name", name: "页面名称", isshow: "T", align: "center"},
                    {field: "code", name: "界面编号", isshow: "T", align: "center"},
                ],
        config:{
                table:[
                {field: "name", name: "表格名称", isshow: "T", align: "center"},
                {field: "type", name: "父容器类型", width:"120", isshow: "T", align: "center"},
                {field: "page_id", name: "父容器id", width:"120", isshow: "F", align: "center"},
                
                {field: "data_type", name: "数据定义类型",width:"120", isshow: "F", align: "center"},
                {field: "data_url", name: "数据定义名称",width:"120", isshow: "F", align: "center"},
                {field: "active", name: "是否激活", isshow: "T", align: "center",formatter:'formatter_TF4'},
                ],
                panel:[
                {field: "code", name: "容器编码", isshow: "T", align: "center"},
                {field: "page_id", name: "页面id", isshow: "F", align: "center"},
                {field: "type", name: "定位类型", isshow: "T", align: "center"},
                {field: "top", name: "上距离", isshow: "T", align: "center"},
                {field: "left", name: "左距离", isshow: "T", align: "center"},
                {field: "right", name: "右距离", isshow: "T", align: "center"},
                {field: "bottom", name: "下距离", isshow: "T", align: "center"},
                {field: "width", name: "宽度", isshow: "T", align: "center"},
                {field: "height", name: "高度", isshow: "T", align: "center"},
                ],
                form:[
                {field: "name", name: "表单名称", isshow: "T", align: "center"},
                {field: "type", name: "父容器类型", width:"120",isshow: "T", align: "center"},
                {field: "page_id", name: "父容器id",width:"120", isshow: "F", align: "center"},
                {field: "data_type", name: "数据定义类型",width:"120", isshow: "F", align: "center"},
                {field: "dataobjectname", name: "数据定义名称",width:"120", isshow: "F", align: "center"},
                {field: "columnnumber", name: "每行属性列数", width:"120",isshow: "F", align: "center"},
                {field: "labelwidth", name: "属性名宽度", width:"120",isshow: "F", align: "center"},
                {field: "disabled", name: "是否只读", isshow: "T", align: "center",formatter:'formatter_TF4'},
                ],
                button:[
                {field: "name", name: "按钮名称", isshow: "T", align: "center"},
                {field: "type", name: "父容器类型", width:"120",isshow: "T", align: "center"},
                {field: "page_id", name: "父容器id", isshow: "F", align: "center"},
                {field: "icon", name: "图标", isshow: "F", align: "center"},
                {field: "id_name", name: "按键id", isshow: "T", align: "center"},
                {field: "summary", name: "描述", isshow: "F", align: "center"},
                ],
                tab:[
                {field: "name", name: "tab名称", isshow: "T", align: "center"},
                {field: "id_name", name: "tab编码", isshow: "T", align: "center"},
                {field: "orderno", name: "排序", isshow: "T", align: "center"},
                {field: "summary", name: "描述", isshow: "T", align: "center"},
                ],
                
                query:[
                {field: "field", name: "字段名称", isshow: "T", align: "center"},
                {field: "name", name: "显示名称", isshow: "T", align: "center"},
                {field: "filterfield", name: "where字段名", isshow: "T", align: "center"},
                {field: "filteroperator", name: "查询类型", isshow: "T", align: "center"},
                {field: "isshow", name: "是否显示", isshow: "T", align: "center",formatter:'formatter_TF4'},
                ],
                tablefield:[
                    {field: "field", name: "字段名称",width:"120", isshow: "T", align: "center"},
                    {field: "name", name: "显示名称", isshow: "T", align: "center"},
                    {field: "defaultval", name: "默认值", isshow: "F", align: "center"},
                    {field: "align", name: "对齐方式", isshow: "F", align: "center"},
                    {field: "iscellclick", name: "是否可点击",width:"120", isshow: "F", align: "center",formatter:'formatter_TF4'},
                    {field: "isshow", name: "是否显示", isshow: "F", align: "center",formatter:'formatter_TF4'},
                    {field: "isquery", name: "是否为查询字段",width:"120", isshow: "T", align: "center",formatter:'formatter_TF4'},
                ],
                formfield:[
                    {field: "name", name: "显示名称", isshow: "T", width:"120",align: "center"},
                    {field: "field", name: "对应字段", isshow: "T", align: "center"},
                    {field: "form_id", name: "表单id", isshow: "F", align: "center"},
                    /* {field: "dataobject_id", name: "数据对象id", isshow: "T", align: "center"}, */
                    /* {field: "field", name: "字段", isshow: "T", align: "center"}, */
                    {field: "isshow", name: "是否显示", isshow: "T", align: "center",formatter:'formatter_TF4'},
                    /* {field: "val", name: "值", isshow: "T", align: "center"}, */
                ],
    
        }
    },
    formConfig: {
        "page": {
            formAttr: {
                columnnumber: 1,
                labelwidth: "150px",
                labelposition: "right",
                //size: "mini",
                border: "10px solid #c6c6c600",
                dataobjectname: "page"
            },
            tableFields: [
                {isshow:"T",field:"code",name:"界面编码",required:true,},
                {isshow:"T",field:"name",name:"界面名称",},
                {isshow:"T",field:"url",name:"界面路径"},
                {isshow:"T",field:"active",type:"radio",name:"是否生效",options:[{code:"T",name:"是"},{code:"F",name:"否"}]}
            ],
            defaulForm: {active: "T"}
        },
        "panel": {
            formAttr: {
                columnnumber: 2,
                labelwidth: "100px",
                labelposition: "right",
                //size: "mini",
                border: "10px solid #c6c6c600",
                dataobjectname: "panel"
            },
            tableFields: [
                {isshow:"T",field:"code",name:"容器编码",required:true,},
                {isshow:"T",field:"type",name:"定位类型",},
                {isshow:"T",field:"width",name:"宽度"},
                {isshow:"T",field:"height",name:"高度"},
                {isshow:"T",name:"定位top",field:"top"},
                {isshow:"T",name:"定位bottom",field:"bottom"},
                {isshow:"T",name:"定位left",field:"left"},
                {isshow:"T",name:"定位right",field:"right"},
                {isshow:"T",name:"排序",field:"orderno",type:"number"}
            ],
            defaulForm: {orderno: 1}
        },
        "query": {
            formAttr: {
                columnnumber: 2,
                labelwidth: "100px",
                labelposition: "right",
                //size: "mini",
                border: "10px solid #c6c6c600",
                dataobjectname: "tableQueryField"
            },
            tableFields: [
                {isshow:"T",name:"显示名称",field:"name",required:true},
                {isshow:"T",name:"所占列数",field:"colspan"},
                {isshow:"T",name:"属性名的宽度",field:"labelwidth"},
                {isshow:"T",name:"对应字段",field:"filterfield"},
                {isshow:"T",name:"期间查询",field:"type",type:"radio",options:[{code:"daterange",name:"是"},{code:null,name:"否"}]},
                {isshow:"T",name:"是否显示",field:"isshow",type:"radio",options:[{code:"T",name:"是"},{code:"F",name:"否"}]},
                {isshow:"T",name:"查询类型",field:"filteroperator",type:"radio",options:[{code:"like",name:"模糊查询"},{code:"equal",name:"精准查询"}]},
                {isshow:"T",name:"排序",field:"orderno",type:"number"}
            ],
            defaulForm: {isshow: 'T',filteroperator: 'like',type: null,orderno: 1}
        },
        "queryConfig": {
            formAttr: {
                columnnumber: 1,
                labelwidth: "150px",
                labelposition: "right",
                //size: "mini",
                border: "10px solid #c6c6c600",
                dataobjectname: "query"
            },
            tableFields: [
                {isshow:"T",name:"属性列数",field:"columnnumber"},
                {isshow:"T",name:"属性宽度",field:"labelwidth"},
                {isshow:"T",name:"属性对齐方式",field:"labelposition",type:"select",options:[{label:"left",value:"left"},{label:"right",value:"right"},{label:"top",value:"top"}]},
                {isshow:"T",name:"组件尺寸",field:"size",type:"select",options:[{label:"medium",value:"medium"},{label:"small",value:"small"},{label:"mini",value:"mini"}]},
                {isshow:"T",name:"边框设置",field:"border"},
            ],
            defaulForm: {}
        },
        "tab": {
            formAttr: {
                columnnumber: 1,
                labelwidth: "150px",
                labelposition: "right",
                //size: "mini",
                border: "10px solid #c6c6c600",
                dataobjectname: "tabs"
            },
            tableFields: [
                {isshow:"T",name:"容器id",field:"panel_id",type:"select"},
                {isshow:"T",name:"tab名称",field:"name",required:true},
                {isshow:"T",name:"tab图标",field:"icon"},
                {isshow:"T",name:"tab编码",field:"id_name"},
                {isshow:"T",name:"排序",field:"orderno",type:"number"},
                {isshow:"T",name:"tab的功能描述",field:"summary",type:"textarea"},
            ],
            defaulForm: {orderno: 1}
        },
        "button": {
            formAttr: {
                columnnumber: 1,
                labelwidth: "150px",
                labelposition: "right",
                //size: "mini",
                border: "10px solid #c6c6c600",
                dataobjectname: "button"
            },
            tableFields: [
                {isshow:"T",name:"按键名称",field:"name",required:true},
                {isshow:"T",name:"父容器类型",field:"type",required:true,type:"select",options:[{label:"page",value:"page"},{label:"panel",value:"panel"},{label:"tab",value:"tab"}]},
                {isshow:"T",name:"父容器名称",field:"page_id",required:true,type:"select"},
                {isshow:"T",name:"按键图标",field:"icon"},
                {isshow:"T",name:"界面按键id",field:"id_name"},
                {isshow:"T",name:"按键的功能描述",field:"summary",type:"textarea"},
            ],
            defaulForm: {type:'page'}
        },
        "form": {
            formAttr: {
                columnnumber: 2,
                labelwidth: "100px",
                labelposition: "right",
                //size: "mini",
                border: "10px solid #c6c6c600",
                dataobjectname: "form"
            },
            tableFields: [
                {isshow:"T",name:"表单名称",field:"name"},
                {isshow:"T",name:"表单编码",field:"code"},
                {isshow:"T",name:"父容器类型",field:"type",required:true,type:"select",options:[{label:"page",value:"page"},{label:"panel",value:"panel"},{label:"tab",value:"tab"}]},
                {isshow:"T",name:"父容器名称",field:"page_id",required:true,type:"select"},
                {isshow:"T",name:"数据对象名称",field:"dataobjectname"},
                {isshow:"T",name:"表单标题",field:"title"},
                {isshow:"T",name:"每行属性列数",field:"columnnumber"},
                {isshow:"T",name:"属性名宽度",field:"labelwidth"},
                {isshow:"T",name:"边框设置",field:"border"},
                {isshow:"T",name:"对齐方式",field:"labelposition",type:"select",options:[{label:"left",value:"left"},{label:"right",value:"right"}]},
                {isshow:"T",name:"是否显示标题",field:"istitle",type:"radio",options:[{code:"T",name:"是"},{code:"F",name:"否"}]},
                {isshow:"T",name:"是否只读",field:"disabled",type:"radio",options:[{code:true,name:"是"},{code:false,name:"否"}]},
            ],
            defaulForm: {istitle: 'T',disabled: true,type:'page',page_id:''}
        },
        "table": {
            formAttr: {
                columnnumber: 2,
                labelwidth: "100px",
                labelposition: "right",
                //size: "mini",
                border: "10px solid #c6c6c600",
                dataobjectname: "table"
            },
            tableFields: [
                {isshow:"T",name:"表格名称",field:"name"},
                {isshow:"T",name:"表格编码",field:"code"},
                {isshow:"T",name:"父容器类型",field:"type",required:true,type:"select",options:[{label:"page",value:"page"},{label:"panel",value:"panel"},{label:"tab",value:"tab"}]},
                {isshow:"T",name:"父容器名称",field:"page_id",required:true,type:"select"},
                {isshow:"T",name:"数据定义名称",field:"data_url",type:"popup"},
                {isshow:"T",name:"数据排序规则",field:"data_orderby"},
                {isshow:"T",name:"数据类型",field:"data_type",type:"select",options:[{label:"sql",value:"sql"},{label:"interface",value:"interface"},{label:"dataobject",value:"dataobject"}]},
                {isshow:"T",name:"是否生效",field:"active",type:"radio",options:[{code:"T",name:"是"},{code:"F",name:"否"}]},
            ],
            defaulForm: {active: 'T',data_type: 'sql',type: 'page',page_id: ''}
        },
        "menu": {
            formAttr: {
                columnnumber: 1,
                labelwidth: "150px",
                labelposition: "right",
                //size: "mini",
                border: "10px solid #c6c6c600",
                dataobjectname: "resource_menu"
            },
            tableFields: [
                {isshow:"T",field:"name",name:"菜单名称",required:true},
                {isshow:"T",field:"icon",name:"菜单图标",},
                {isshow:"T",field:"parent_id",name:"上级菜单",type:"cascader",options:[],props:{checkStrictly: true,value:'id',label:'name'}},
                {isshow:"T",field:"page_name",type:"popup",name:"选择页面",},
                {isshow:"T",field:"orderno",name:"排序",type:"number"},
            ],
            defaulForm: {orderno: 1}
        },
        "tableField": {
            formAttr: {
                columnnumber: 2,
                labelwidth: "100px",
                labelposition: "right",
                //size: "mini",
                border: "10px solid #c6c6c600",
                dataobjectname: "tableField"
            },
            tableFields: [
                {isshow:"T",name:"字段名称",field:"field",required:true},
                {isshow:"T",name:"显示名称",field:"name",required:true},
                
                {isshow:"T",name:"表内列编辑类型",field:"type",type:"select",
                options:[{label:"button",value:"button"},{label:"select",value:"select"},
                {label:"input",value:"input"}]},
                {isshow:"T",name:"内容对齐方式",field:"align",type:"select",options:[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}]},
                {isshow:"T",name:"默认值",field:"defaultval"},
                {isshow:"T",name:"宽度(数字)",field:"width"},
                {isshow:"T",name:"最小值(低于标红)",field:"minval"},
                {isshow:"T",name:"最大值(超过标红)",field:"maxval"},
                {isshow:"T",name:"格式转换",field:"formatter"},
                {isshow:"T",name:"格式转换匹配",field:"formatterjson"},
                {isshow:"T",name:"是否可点击",field:"iscellclick",type:"radio",options:[{code:1,name:"是"},{code:0,name:"否"}]},
                {isshow:"T",name:"是否显示",field:"isshow",type:"radio",options:[{code:"T",name:"是"},{code:"F",name:"否"}]},
                {isshow:"T",name:"排序",field:"orderno",type:"number"},
                
            ],
            defaulForm: {isshow: 'T',orderno: 1,iscellclick: 0}
        },
        "formField": {
            formAttr: {
                columnnumber: 2,
                labelwidth: "100px",
                labelposition: "right",
                //size: "mini",
                border: "10px solid #c6c6c600",
                dataobjectname: "formFieldByFormId"
            },
            tableFields: [
                {isshow:"T",name:"字段名称",field:"field",required:true},
                {isshow:"T",name:"显示名称",field:"name",required:true},
                {isshow:"T",name:"编辑格式",field:"type",type:"select",
                options:[{label:"textarea",value:"textarea"},{label:"select",value:"select"},
                {label:"input",value:"input"},{label:"number",value:"number"},{label:"popup",value:"popup"},
                {label:"switch",value:"switch"},{label:"checkbox",value:"checkbox"},
                {label:"radio",value:"radio"},{label:"cascader",value:"cascader"},
                {label:"date",value:"date"},{label:"month",value:"month"}]},
                {isshow:"T",name:"属性名宽度",field:"labelwidth"},
                {isshow:"T",name:"宽度(可不填)",field:"width"},
                {isshow:"T",name:"横向合并列数",field:"colspan"},
                {isshow:"T",name:"内容格式校验",field:"pattern"},
                {isshow:"T",name:"格式转换",field:"formatter"},
                {isshow:"T",name:"是否必填",field:"required",type:"radio",options:[{code:true,name:"是"},{code:false,name:"否"}]},
                {isshow:"T",name:"是否只读",field:"disabled",type:"radio",options:[{code:true,name:"是"},{code:false,name:"否"}]},
                {isshow:"T",name:"是否显示",field:"isshow",type:"radio",options:[{code:"T",name:"是"},{code:"F",name:"否"}]},
            ],
            defaulForm: {isshow: 'T',required: true,disabled: true}
        },
    }
}