{ "type" : "page", "title" : "风险任务过滤项目", "body" : { "type" : "crud", "api" : "/api/flow/SYS_SCHEDULEJOB_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "NAME", "label" : "任务名称", "type" : "input-text" }, { "name" : "DESCRIPTION", "label" : "任务描述", "type" : "input-text" }, { "name" : "ISPROJ", "label" : "是否项目风险", "hidden" : true, "type" : "checkbox", "value" : "1" } ] }, "columns" : [ { "name" : "SYS_SCHEDULEJOB_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "NAME", "label" : "任务名称", "width" : 200 }, { "name" : "DESCRIPTION", "label" : "任务描述", "width" : 200 } ], "headerToolbar" : [ { "type" : "button", "id" : "设置例外项目", "label" : "设置例外项目", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "设置例外项目", "size" : "lg", "data" : { "SYS_SCHEDULEJOB_ID" : "${selectedItems[0].SYS_SCHEDULEJOB_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/ec2e5332-ccc7-4bec-8b3c-c0479c09e1cc?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "SYS_SCHEDULEJOB_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "de64846f-4819-4bbd-b51b-a7ab88a7a204" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }