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>
247 lines
6.9 KiB
JSON
247 lines
6.9 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "计划执行",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/HR_RECRUITPLAN_SEARCH_DO_STATUS",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "NAME",
|
|
"label" : "计划名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "CREATETIME",
|
|
"label" : "制定日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "DOSTATUS",
|
|
"label" : "执行状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/HR_PLAN_DOSTATUS"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "HR_RECRUITPLAN_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "SERIALNO",
|
|
"label" : "计划编号",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "NAME",
|
|
"label" : "计划名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "PRINCIPAL_DISPLAY__",
|
|
"label" : "负责人",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "STARTTIME",
|
|
"label" : "开始日期",
|
|
"width" : 200,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "ENDTIME",
|
|
"label" : "结束日期",
|
|
"width" : 200,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "BUDGETFARE",
|
|
"label" : "预算费用(元)",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "PLANCOUNT",
|
|
"label" : "拟招人数",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "CREATEBY_DISPLAY__",
|
|
"label" : "制定人",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "CREATETIME",
|
|
"label" : "制定日期",
|
|
"width" : 200,
|
|
"type" : "datetime",
|
|
"format" : "YYYY-MM-DD HH:mm",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "DOSTATUS",
|
|
"label" : "执行状态",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "执行中",
|
|
"2" : "已执行",
|
|
"3" : "未执行"
|
|
}
|
|
}, {
|
|
"name" : "DEPART_DISPLAY__",
|
|
"label" : "制定部门",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "设置应聘人员",
|
|
"label" : "设置应聘人员",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "设置应聘人员",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/e64164d8-9354-4662-9dce-d8aa4fc62bd1?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_RECRUITPLAN_LOAD_RECRUITJOB?__egtpl=e64164d8-9354-4662-9dce-d8aa4fc62bd1",
|
|
"data" : {
|
|
"HR_RECRUITPLAN_ID" : "${HR_RECRUITPLAN_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
},
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 3,
|
|
"item" : "${&}",
|
|
"templateId" : "fa65ccab-237a-42db-b824-9d5631d814e5"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult3"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult3.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_RECRUITPLAN_SETRECRUITJOB?__egtpl=e64164d8-9354-4662-9dce-d8aa4fc62bd1",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "查看应聘人员",
|
|
"label" : "查看应聘人员",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "查看应聘人员",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}",
|
|
"__readonly" : true
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/dad2fbc1-fe08-4ffa-88cb-a923efe27189?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_RECRUITPLAN_LOAD_RECRUITJOB?__egtpl=dad2fbc1-fe08-4ffa-88cb-a923efe27189",
|
|
"data" : {
|
|
"HR_RECRUITPLAN_ID" : "${HR_RECRUITPLAN_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "执行完成",
|
|
"label" : "执行完成",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_RECRUITPLAN_UPDATE_DO_STATUS",
|
|
"data" : {
|
|
"HR_RECRUITPLAN_ID" : "${selectedItems[0].HR_RECRUITPLAN_ID}"
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "HR_RECRUITPLAN_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "disabled",
|
|
"componentId" : "执行完成"
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "fa65ccab-237a-42db-b824-9d5631d814e5"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
},
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 3,
|
|
"item" : "${&}",
|
|
"templateId" : "fa65ccab-237a-42db-b824-9d5631d814e5"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult3"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult3.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |