All checks were successful
技能自动化发布 / release (push) Successful in 15s
基于 skill-template 脚手架开发,包含: - 5 张业务表(教职工、请假政策、考勤日历、请假记录、假期余额) - 请假核算引擎(扣薪计算、审批层级判定、年假抵扣) - CLI 入口(import-employees / calculate-leave / render-html) - HTML 审批与扣薪报告生成 - 示例数据与完整测试套件(295 tests passed)
35 lines
853 B
JSON
35 lines
853 B
JSON
{
|
|
"id": "item-update",
|
|
"label": "编辑记录",
|
|
"description": "编辑业务记录并重算派生字段。",
|
|
"replaces": "update",
|
|
"placements": [],
|
|
"executionProfile": "sync",
|
|
"interaction": "form",
|
|
"bind": {
|
|
"tables": ["items"],
|
|
"inputMapping": {
|
|
"id": "$row.$pk",
|
|
"name": "$row.name",
|
|
"note": "$row.note"
|
|
}
|
|
},
|
|
"hostEffects": {
|
|
"onSuccess": ["reloadTable"]
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": ["id", "name"],
|
|
"properties": {
|
|
"id": { "type": "number", "title": "编号", "readOnly": true },
|
|
"name": { "type": "string", "title": "名称" },
|
|
"note": { "type": "string", "title": "备注" }
|
|
}
|
|
},
|
|
"entrypoint": {
|
|
"type": "cli",
|
|
"command": "item",
|
|
"args": ["update", "--id", "{{id}}", "--name", "{{name}}", "--note", "{{note}}"]
|
|
}
|
|
}
|