配置说明
{
"keyword" : "", // 关键词
"keywordType" : "", // BO(关键词类型BO | ViewEntity)
"keyField" : "", // 主键, 默认Id
"name" : "", // 基础信息(页签名称)
"titleField" : "", // 标题字段
"statusField" : "", //主表状态字段
// 事件定义部分 不需要的话可以不用配置
// 注意 beforeLoad, afterLoad, 还有callback全部都是字符串
"jsContent": {
"beforeLoad": "", // string 加载前事件 "function () {}"
"afterLoad": "", // string 加载后事件 "function () {}",
// 自定义事件
"customizeEvents": [
{
"name": "窗体自定义事件1",
"callback": "function () {}" // string
},
{
"name": "窗体自定义事件2",
"callback": "function () {}" // string
}
]
},
"fields" : [
{
"name":"", // 要显示的字段名
"label":"", // 字段描述
//controlType代表的是 类型 text(默认普通文本) | number(数字) |
//checkbox(选择框) | datePicker(日期选择器) | select(下拉框)
"controlType": "",
// format 格式化规则 ''(默认) | n2 (数字千分符) | rate(数字 税率 小数点8位) |
// yyyy-MM-dd (日期格式化) | boolean|number|string (针对checkbox)
"format":"",
"isReadonly": true, // true(字段只读 查看状态 默认true) | false (编辑和新增状态 默认false)
"groupIndex": 1, // 整形,如1:分组序号,如存在分组,相同分组序号显示在一起,分组之间有灰色线分割
"showPlace":"" // showPlace 字段显示的位置,search,tag,title,left,right,center
}
],
"tabs": [
{
"type": "", // report(报表)| attach(附件)| comment(评论)| url(ifarme内链接)| child(子单,默认)
"name": "", // 页签标题
"formId": "", // 子表单的formId(子单需要打开另外的表单的话)
"keyword": "", // 子表关键词
"keywordType": "", // BO(关键词类型BO | ViewEntity)
"keyField": "", // 主键, 默认Id
"sequField": "", // 排序字段及方式(Sequ desc)
"connectMap": {
// 子表和主表关联关系
"子表外键":"主表主键"
},
"showFields": [
{
"name":"", // 要显示的字段名
"label":"", // 字段描述
//controlType代表的是 类型 text(默认普通文本) | number(数字) |