{ "type" : "page", "title" : "工程功能解除控制", "body" : { "type" : "crud", "api" : "/api/flow/SYS_TEMPLATECONTROL_SEARCH_PROJECT", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "TEMPLATEID", "label" : "功能名称", "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" } ] }, "columns" : [ { "name" : "SYS_TEMPLATECONTROL_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "TEMPLATEID", "label" : "功能名称", "width" : 200 }, { "name" : "MEMO", "label" : "说明", "width" : 200 } ], "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/13ca21e4-0fea-46c1-84b1-097ddf081e90?format=amis", "api" : { "method" : "post", "url" : "/api/flow/SYS_TEMPLATECONTROL_LOAD?__egtpl=13ca21e4-0fea-46c1-84b1-097ddf081e90", "data" : { "SYS_TEMPLATECONTROL_ID" : "${SYS_TEMPLATECONTROL_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "6f42ddab-4efb-49bf-a6de-4932e4f7cac1" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/SYS_TEMPLATECONTROL_UPDATE?__egtpl=13ca21e4-0fea-46c1-84b1-097ddf081e90", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "SYS_TEMPLATECONTROL_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "6f42ddab-4efb-49bf-a6de-4932e4f7cac1" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }