31 lines
1.6 KiB
JSON
31 lines
1.6 KiB
JSON
{
|
|
"name": "org_field_def_crud",
|
|
"title": "组织自定义字段定义",
|
|
"type": "crud",
|
|
"api": {
|
|
"list": "/hr-org/api/org_field_def.list.dspy",
|
|
"get": "/hr-org/api/org_field_def.get.dspy",
|
|
"save": "/hr-org/api/org_field_def.save.dspy",
|
|
"delete": "/hr-org/api/org_field_def.delete.dspy"
|
|
},
|
|
"columns": [
|
|
{"field": "field_code", "title": "字段编码", "sortable": true},
|
|
{"field": "field_name", "title": "字段名称", "sortable": true},
|
|
{"field": "field_type", "title": "字段类型"},
|
|
{"field": "entity_type", "title": "实体类型"},
|
|
{"field": "required", "title": "必填"},
|
|
{"field": "sort_no", "title": "排序号"},
|
|
{"field": "status", "title": "状态"}
|
|
],
|
|
"form": [
|
|
{"field": "field_code", "label": "字段编码", "type": "text", "required": true},
|
|
{"field": "field_name", "label": "字段名称", "type": "text", "required": true},
|
|
{"field": "field_type", "label": "字段类型", "type": "select", "options": [{"value": "text", "label": "文本"}, {"value": "number", "label": "数字"}, {"value": "date", "label": "日期"}, {"value": "select", "label": "下拉"}]},
|
|
{"field": "entity_type", "label": "实体类型", "type": "text", "default": "org_unit"},
|
|
{"field": "options", "label": "选项(JSON)", "type": "textarea"},
|
|
{"field": "required", "label": "是否必填", "type": "checkbox"},
|
|
{"field": "sort_no", "label": "排序号", "type": "number"},
|
|
{"field": "status", "label": "状态", "type": "select", "options": [{"value": "active", "label": "启用"}, {"value": "inactive", "label": "停用"}]}
|
|
]
|
|
}
|