{ "type" : "page", "title" : "档案中心-管理", "body" : { "type" : "grid", "columns" : [ { "md" : 3, "body" : { "type" : "input-tree", "name" : "tree", "showOutline" : true, "initiallyOpen" : true, "virtualThreshold" : 100000, "className" : "eip4-treegrid-tree", "id" : "treegrid_tree", "source" : "/api/template/9816262d-53c7-425a-b4c9-eb46007a8e1a/tree" } }, { "md" : 9, "body" : { "type" : "crud", "id" : "treegrid_crud", "syncLocation" : false, "api" : "/api/template/treegrid?treeRef=9816262d-53c7-425a-b4c9-eb46007a8e1a&gridTable=DM_ARCHIVE&rcol=FILEID&node=${tree}&page=${page}&perPage=${perPage}", "selectable" : true, "checkOnItemClick" : true, "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", "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 } ] } } ] } }