{ "type" : "page", "title" : "员工日志", "body" : { "type" : "crud", "api" : "/api/flow/OA_DAILY_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "USERNAME", "label" : "姓名", "type" : "input-text" }, { "name" : "TITLE", "label" : "标题", "type" : "input-text" }, { "name" : "DAILYDATE", "label" : "日期", "type" : "input-date-range" }, { "name" : "ISREAD", "label" : "是否已阅", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" } ] }, "columns" : [ { "name" : "OA_DAILY_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "DAILYDATE", "label" : "日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "USERID_DISPLAY__", "label" : "姓名", "width" : 200 }, { "name" : "TITLE", "label" : "标题", "width" : 200 }, { "name" : "CONTENT", "label" : "内容", "width" : 200 }, { "name" : "COMMMENTUSERNAME", "label" : "评论人", "width" : 200 }, { "name" : "ISREAD", "label" : "是否已阅", "width" : 100, "type" : "mapping", "map" : { "0" : "否", "1" : "是" } } ], "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/9db07359-cf06-4d1d-8c20-ff39d01d304d?format=amis", "api" : { "method" : "post", "url" : "/api/flow/OA_DAILY_COMMENT_LOAD?__egtpl=9db07359-cf06-4d1d-8c20-ff39d01d304d", "data" : { "OA_DAILY_ID" : "${OA_DAILY_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_DAILY_COMMENT_ADD?__egtpl=9db07359-cf06-4d1d-8c20-ff39d01d304d", "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/809f7d36-5702-4634-8d09-d2ebd49f1067?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/OA_DAILY_LOAD?__egtpl=809f7d36-5702-4634-8d09-d2ebd49f1067", "data" : { "OA_DAILY_ID" : "${OA_DAILY_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "OA_DAILY_ID" } }