PageBlueprint 加 RECIPE_MASTER_DETAIL 常量与可空 child 组件(14-arg, 保留 13-arg 兼容构造);新增 PageBlueprintChild record。 PageBlueprintCompiler.masterDetail 复用 maintenance 列表骨架, 新增/编辑表单内联 house-style input-table 子表(name=listColumn, quickEdit 控件),编辑表单 initApi 走 _LOAD 回显主+子行。 validate 接受 master-detail 并要求 child 非空/childTable/listColumn 非空/fields 非空。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
204 lines
6.1 KiB
JSON
204 lines
6.1 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "考核方案编辑页面",
|
|
"body" : {
|
|
"type" : "form",
|
|
"id" : "eip4-edit-form",
|
|
"title" : "",
|
|
"mode" : "horizontal",
|
|
"horizontal" : {
|
|
"leftFixed" : 120
|
|
},
|
|
"body" : [ {
|
|
"type" : "group",
|
|
"body" : [ {
|
|
"name" : "NAME",
|
|
"label" : "方案名称",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "DEPART",
|
|
"label" : "制定部门",
|
|
"required" : true,
|
|
"type" : "tree-select",
|
|
"clearable" : true,
|
|
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
|
|
"searchable" : true,
|
|
"onlyLeaf" : true
|
|
} ]
|
|
}, {
|
|
"type" : "group",
|
|
"body" : [ {
|
|
"name" : "CREATETIME",
|
|
"label" : "制定日期",
|
|
"required" : true,
|
|
"type" : "input-date",
|
|
"value" : "${now}"
|
|
} ]
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"type" : "textarea"
|
|
}, {
|
|
"name" : "RECRUITPLANGUIDES",
|
|
"label" : "指标分值",
|
|
"required" : true,
|
|
"type" : "input-table",
|
|
"id" : "eg-RECRUITPLANGUIDES",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "SELECTGUIDE",
|
|
"label" : "SELECTGUIDE",
|
|
"quickEdit" : {
|
|
"name" : "SELECTGUIDE",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/aa6522e7-8e6f-4dfd-b759-b17c57f1f341/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
},
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "b13b7052-4f67-42ce-af2c-ee751734087c",
|
|
"editgridField" : "RECRUITPLANGUIDES",
|
|
"scriptKey" : "a00122c4-0826-4851-ac9c-c45b2d9eda97",
|
|
"changedField" : "SELECTGUIDE",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"RECRUITPLANGUIDES" : "${__rendererData.RECRUITPLANGUIDES || RECRUITPLANGUIDES}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-RECRUITPLANGUIDES",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "GUIDECATEGORY",
|
|
"label" : "所属类别",
|
|
"quickEdit" : {
|
|
"name" : "GUIDECATEGORY",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-text",
|
|
"maxLength" : 30
|
|
}
|
|
}, {
|
|
"name" : "GUIDENAME",
|
|
"label" : "指标名称",
|
|
"quickEdit" : {
|
|
"name" : "GUIDENAME",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-text",
|
|
"maxLength" : 30
|
|
}
|
|
}, {
|
|
"name" : "SCORE",
|
|
"label" : "分值",
|
|
"quickEdit" : {
|
|
"name" : "SCORE",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1,
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "b13b7052-4f67-42ce-af2c-ee751734087c",
|
|
"editgridField" : "RECRUITPLANGUIDES",
|
|
"scriptKey" : "cb2967bf-494b-45e2-be2e-5454a648daf5",
|
|
"changedField" : "SCORE",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"RECRUITPLANGUIDES" : "${__rendererData.RECRUITPLANGUIDES || RECRUITPLANGUIDES}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-RECRUITPLANGUIDES",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
}, {
|
|
"name" : "SCORE",
|
|
"label" : "总分",
|
|
"hidden" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1
|
|
}, {
|
|
"name" : "DOCUMENT",
|
|
"label" : "附件",
|
|
"type" : "input-file",
|
|
"receiver" : "/api/file/upload?tableName=HR_RECRUITEVALSCHEME&businessKey=${HR_RECRUITEVALSCHEME_ID}",
|
|
"downloadUrl" : "/api/file/${id}",
|
|
"multiple" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"joinValues" : false,
|
|
"extractValue" : false
|
|
}, {
|
|
"name" : "HR_RECRUITEVALSCHEME_ID",
|
|
"label" : "主键",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |