{ "type" : "page", "title" : "查看公告", "body" : { "type" : "crud", "api" : "/api/flow/OA_BULLETINMANAGE_SEARCH_LOOK", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "TITLE", "label" : "主题", "type" : "input-text" }, { "name" : "ISDEL", "label" : "是否删除", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO", "value" : "0" }, { "name" : "ISSEND", "label" : "是否发布", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO", "value" : "1" }, { "name" : "USERSEND_ID", "label" : "发布人", "hidden" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "placeholder" : "请点击右侧的图标" }, { "name" : "SENDTIME", "label" : "发布时间", "hidden" : true, "type" : "input-datetime-range" }, { "name" : "ISSHOW", "label" : "显示/隐藏", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO", "value" : "1" } ] }, "columns" : [ { "name" : "IMPORTANT", "label" : "重要级别", "width" : 80, "type" : "mapping", "map" : { "0" : "一般", "1" : "重要" } }, { "name" : "TITLE", "label" : "主题", "width" : 320 }, { "name" : "USER_ID_DISPLAY__", "label" : "拟稿人", "width" : 100, "toggled" : false }, { "name" : "USERSEND_ID_DISPLAY__", "label" : "发布人", "width" : 100 }, { "name" : "SENDTIME", "label" : "发布时间", "width" : 200, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "SAVETIME", "label" : "保存时间", "width" : 200, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "STATE", "label" : "审批状态", "width" : 200, "toggled" : false }, { "name" : "ISDEL", "label" : "是否删除", "width" : 200, "type" : "mapping", "map" : { "0" : "否", "1" : "是" }, "toggled" : false }, { "name" : "ISSEND", "label" : "是否发布", "width" : 200, "type" : "mapping", "map" : { "0" : "否", "1" : "是" }, "toggled" : false }, { "name" : "ISSHOW", "label" : "显示/隐藏", "width" : 200, "type" : "mapping", "map" : { "1" : "显示", "0" : "隐藏" }, "toggled" : false }, { "name" : "OA_BULLETINMANAGE_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/e04e9964-91d7-4b4a-a96f-6bd0a0fcee2c?format=amis", "api" : { "method" : "post", "url" : "/api/flow/OA_BULLETINMANAGE_LOAD?__egtpl=e04e9964-91d7-4b4a-a96f-6bd0a0fcee2c", "data" : { "OA_BULLETINMANAGE_ID" : "${OA_BULLETINMANAGE_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_BULLETINCOLLECTION_ADD?__egtpl=e04e9964-91d7-4b4a-a96f-6bd0a0fcee2c", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "查看", "label" : "查看", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "查看", "size" : "lg", "data" : { "&" : "${selectedItems[0]}", "__readonly" : true }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/51d404ff-ff95-4fb7-9fab-5ae8370ed550?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/OA_BULLETINMANAGE_LOAD?__egtpl=51d404ff-ff95-4fb7-9fab-5ae8370ed550", "data" : { "OA_BULLETINMANAGE_ID" : "${OA_BULLETINMANAGE_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "a695a1c5-9bef-410a-a9a3-5fe6e6cc2dbc" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } } }, "pagination" ], "primaryField" : "OA_BULLETINMANAGE_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "a695a1c5-9bef-410a-a9a3-5fe6e6cc2dbc" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }