Files
eip4-platform/转换产物-attach/schema/324388a6-ace2-43fc-ac53-dc57c9a0573f.json
zhengwr 8fe377b0c8 feat(blueprint): master-detail-v1 编译器分支 + PageBlueprintChild
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>
2026-06-20 15:16:30 +08:00

159 lines
4.2 KiB
JSON

{
"type" : "page",
"title" : "用户登录操作信息",
"body" : {
"type" : "crud",
"api" : "/api/flow/VIEW_SYS_USERLOGINFO_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "USERORGID",
"label" : "所属公司",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"value" : "${orgId}"
}, {
"name" : "ACCOUNT",
"label" : "账号",
"type" : "input-text"
}, {
"name" : "NAME",
"label" : "姓名",
"type" : "input-text"
}, {
"name" : "LOGINCOUNT",
"label" : "登录次数",
"hidden" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
}, {
"name" : "LOGCOUNT",
"label" : "操作数量",
"hidden" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
}, {
"name" : "OPTIMES",
"label" : "登录操作时间",
"required" : true,
"type" : "input-datetime-range"
} ]
},
"columns" : [ {
"name" : "VIEW_SYS_USERLOGINFO_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "ORGNAME",
"label" : "所属公司",
"width" : 200
}, {
"name" : "ACCOUNT",
"label" : "账号",
"width" : 200
}, {
"name" : "NAME",
"label" : "姓名",
"width" : 200
}, {
"name" : "DISPLAYNAME",
"label" : "显示名",
"width" : 200,
"toggled" : false
}, {
"name" : "LOGINCOUNT",
"label" : "登录次数",
"width" : 200
}, {
"name" : "LOGCOUNT",
"label" : "操作数量",
"width" : 200
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "查看登录记录",
"label" : "查看登录记录",
"icon" : "fa fa-history",
"disabledOn" : "${!selectedItems || selectedItems.length !== 1}",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "登录记录",
"size" : "lg",
"data" : {
"USERID" : "${selectedItems[0].VIEW_SYS_USERLOGINFO_ID}",
"LOGINTIME" : "${OPTIMES}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/edc05980-022b-45a2-8aea-9619e07615ae?format=amis"
},
"actions" : [ {
"type" : "button",
"actionType" : "close",
"label" : "关闭"
} ]
}
}, "pagination" ],
"primaryField" : "VIEW_SYS_USERLOGINFO_ID",
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "324388a6-ace2-43fc-ac53-dc57c9a0573f"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
}, {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 2,
"item" : "${&}",
"templateId" : "324388a6-ace2-43fc-ac53-dc57c9a0573f"
}
},
"outputVar" : "scriptResult2"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult2.commands}"
}
} ]
}
}
}
}