{ "type" : "page", "title" : "档案管理列表", "body" : { "type" : "crud", "api" : "/api/flow/DM_ARCHIVE_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "SEQ", "label" : "序号", "type" : "input-text" }, { "name" : "NO", "label" : "编号", "type" : "input-text" }, { "name" : "FILENUMBER", "label" : "件号", "type" : "input-text" }, { "name" : "NAME", "label" : "文件题名", "type" : "input-text" }, { "name" : "PERSONLIABLE", "label" : "责任人", "type" : "input-text" }, { "name" : "FILEDATE", "label" : "日期", "type" : "input-text" }, { "name" : "REMARK", "label" : "备注", "type" : "input-text" } ] }, "columns" : [ { "name" : "DM_ARCHIVE_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "SEQ", "label" : "序号", "width" : 50 }, { "name" : "NO", "label" : "编号", "width" : 150 }, { "name" : "FILENUMBER", "label" : "件号", "width" : 150 }, { "name" : "NAME", "label" : "文件题名", "width" : 300 }, { "name" : "PERSONLIABLE", "label" : "责任人", "width" : 80 }, { "name" : "FILEDATE", "label" : "日期", "width" : 100 }, { "name" : "REMARK", "label" : "备注", "width" : 200 } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/f2ae4bf9-8de4-42ef-b9bd-26b524bdcfb8?format=amis", "api" : { "method" : "get", "url" : "/api/form/DM_ARCHIVE/defaults?templateId=f2ae4bf9-8de4-42ef-b9bd-26b524bdcfb8" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/DM_ARCHIVE_ADD?__egtpl=f2ae4bf9-8de4-42ef-b9bd-26b524bdcfb8", "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]}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/f2ae4bf9-8de4-42ef-b9bd-26b524bdcfb8?format=amis", "api" : { "method" : "post", "url" : "/api/flow/DM_ARCHIVE_LOAD?__egtpl=f2ae4bf9-8de4-42ef-b9bd-26b524bdcfb8", "data" : { "DM_ARCHIVE_ID" : "${DM_ARCHIVE_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/DM_ARCHIVE_UPDATE?__egtpl=f2ae4bf9-8de4-42ef-b9bd-26b524bdcfb8", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, { "type" : "button", "id" : "删除", "label" : "删除", "level" : "danger", "actionType" : "ajax", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/DM_ARCHIVE_DELETE", "data" : { "ids" : "${selectedItems|pick:DM_ARCHIVE_ID|join:','}" } } }, { "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/f2ae4bf9-8de4-42ef-b9bd-26b524bdcfb8?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/DM_ARCHIVE_LOAD?__egtpl=f2ae4bf9-8de4-42ef-b9bd-26b524bdcfb8", "data" : { "DM_ARCHIVE_ID" : "${DM_ARCHIVE_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "打印归档文件目录", "label" : "打印归档文件目录", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "打印归档文件目录", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/3496faf4-f54e-4446-9146-b24686607057?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "DM_ARCHIVE_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "ea698b19-c8b2-437f-8f88-5451e835a89e" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }