{ "type" : "page", "title" : "企业证书借用管理模式配置", "body" : { "type" : "crud", "api" : "/api/flow/OA_EC_BORROWCONFIG_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "columns" : [ { "name" : "ISMUSTFILLINBORROWAPPLY", "label" : "借用企业证书前是否需填写借用申请单", "width" : 400, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" } }, { "name" : "OA_EC_BORROWCONFIG_ID", "label" : "主键", "width" : 200, "toggled" : false } ], "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/d5227dcf-f477-4aa1-96b3-49ffa43a41c3?format=amis", "api" : { "method" : "post", "url" : "/api/flow/OA_EC_BORROWCONFIG_LOAD?__egtpl=d5227dcf-f477-4aa1-96b3-49ffa43a41c3", "data" : { "OA_EC_BORROWCONFIG_ID" : "${OA_EC_BORROWCONFIG_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "27f4b131-9021-4f1e-9b31-dda229b7009e" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_EC_BORROWCONFIG_UPDATE?__egtpl=d5227dcf-f477-4aa1-96b3-49ffa43a41c3", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "OA_EC_BORROWCONFIG_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "27f4b131-9021-4f1e-9b31-dda229b7009e" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }