{ "type" : "page", "title" : "用户组角色分配编辑页面", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "group", "body" : [ { "name" : "SYS_USERGROUP_ID", "label" : "用户组", "type" : "static", "tpl" : "${SYS_USERGROUP_ID_DISPLAY__ ? SYS_USERGROUP_ID_DISPLAY__ : (NAME ? NAME : SYS_USERGROUP_ID)}" } ] }, { "type" : "flex", "justify" : "flex-start", "alignItems" : "center", "style" : { "paddingLeft" : "120px", "marginBottom" : "4px" }, "items" : [ { "name" : "ROLES", "label" : "选择", "type" : "button", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "id" : "egadddlgROLES", "title" : "角色", "size" : "lg", "body" : { "type" : "crud", "api" : "/api/picker/ab08aab4-5874-4f70-ad7b-8d59bd21cc66/list", "mode" : "table", "syncLocation" : false, "selectable" : true, "multiple" : true, "keepItemSelectionOnPageChange" : true, "primaryField" : "_id", "labelField" : "_label", "headerToolbar" : [ { "type" : "search-box", "placeholder" : "输入关键字搜索", "name" : "q" } ], "footerToolbar" : [ "pagination" ], "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "setValue", "componentId" : "egadddlgROLES", "args" : { "value" : { "__egpicked" : "${event.data.selectedItems}" } } } ] } } }, "actions" : [ { "type" : "button", "label" : "取消", "actionType" : "close" }, { "type" : "button", "label" : "确定", "level" : "primary", "onEvent" : { "click" : { "actions" : [ { "actionType" : "addItem", "componentId" : "eg-ROLELIST", "args" : { "item" : "${ARRAYMAP(__egpicked, item => ({...item}))}" } }, { "actionType" : "closeDialog" } ] } } } ] }, "hiddenOn" : "${__readonly}" } ] }, { "name" : "ROLELIST", "label" : "角色列表", "type" : "input-table", "id" : "eg-ROLELIST", "addable" : false, "removable" : false, "staticOn" : "${__readonly}", "columns" : [ { "name" : "SYS_ROLE_ID", "label" : "角色", "type" : "tpl", "tpl" : "${SYS_ROLE_ID_DISPLAY__ ? SYS_ROLE_ID_DISPLAY__ : SYS_ROLE_ID}", "quickEdit" : false }, { "name" : "ENTITYTYPEID", "label" : "实体分类", "type" : "tpl", "tpl" : "${ENTITYTYPEID_DISPLAY__ ? ENTITYTYPEID_DISPLAY__ : ENTITYTYPEID}", "quickEdit" : false } ], "needConfirm" : false } ], "actions" : [ ] } }