{ "type" : "page", "title" : "会议室预定", "body" : { "type" : "crud", "api" : "/api/flow/OA_MEETINGROOMBOOK_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "MEETINGROOMID", "label" : "会议室", "type" : "picker", "clearable" : true, "source" : "/api/picker/0d6df814-ccfd-4689-a2d8-408110c2d12f/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, "columns" : [ { "name" : "OA_MEETINGROOMBOOK_ID", "label" : "主键", "width" : 100, "toggled" : false }, { "name" : "MEETINGROOMID_DISPLAY__", "label" : "会议室", "width" : 100 }, { "name" : "STARTTIME", "label" : "会议开始时间", "width" : 100, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "ENDTIME", "label" : "会议结束时间", "width" : 100, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "MEETING_TOPIC", "label" : "会议主题", "width" : 100 }, { "name" : "ATTENDEEAMOUNT", "label" : "与会人数", "width" : 100 }, { "name" : "MEETING_RESOURCE", "label" : "配置资源", "width" : 100 }, { "name" : "APPLYUSER_DISPLAY__", "label" : "发起人", "width" : 100 }, { "name" : "DEPART_ID_DISPLAY__", "label" : "所属部门", "width" : 100 }, { "name" : "DISPATCH_STATUS", "label" : "分配状态", "width" : 100, "type" : "mapping", "map" : { "1" : "未安排", "2" : "已安排", "3" : "预订取消" } } ], "headerToolbar" : [ { "type" : "button", "id" : "预定", "label" : "预定", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "预定", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/a30ba49d-dc01-4100-83e0-912bac60ce78?format=amis", "api" : { "method" : "get", "url" : "/api/form/OA_MEETINGROOMBOOK/defaults?templateId=a30ba49d-dc01-4100-83e0-912bac60ce78" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_MEETINGROOMBOOK_ADD?__egtpl=a30ba49d-dc01-4100-83e0-912bac60ce78", "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/a30ba49d-dc01-4100-83e0-912bac60ce78?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/OA_MEETINGROOMBOOK_LOAD?__egtpl=a30ba49d-dc01-4100-83e0-912bac60ce78", "data" : { "OA_MEETINGROOMBOOK_ID" : "${OA_MEETINGROOMBOOK_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "取消预订", "label" : "取消预订", "actionType" : "ajax", "confirmText" : "确定要取消预订吗", "api" : { "method" : "post", "url" : "/api/flow/OA_MEETINGROOMBOOK_UPDATE_STATUS", "data" : { "OA_MEETINGROOMBOOK_ID" : "${selectedItems[0].OA_MEETINGROOMBOOK_ID}" } }, "disabledOn" : "${!selectedItems || selectedItems.length === 0}" }, "pagination" ], "primaryField" : "OA_MEETINGROOMBOOK_ID" } }