{ "type" : "page", "title" : "模块信息维护", "body" : { "type" : "crud", "api" : "/api/flow/SYS_BUNDLE_BUNDLELIST_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "BUNDLE_BUNDLELIST_ID", "label" : "所属包", "type" : "input-text" }, { "name" : "NAME", "label" : "模块名称", "type" : "input-text" }, { "name" : "CURRENTVERSION", "label" : "当前版本", "hidden" : true, "type" : "input-text" }, { "name" : "REMARK", "label" : "备注", "hidden" : true, "type" : "input-text" } ] }, "columns" : [ { "name" : "BUNDLE_BUNDLELIST_ID", "label" : "所属包", "width" : 200 }, { "name" : "NAME", "label" : "模块名称", "width" : 200 }, { "name" : "CURRENTVERSION", "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/01d0f471-0e6d-490a-8ffb-0426c69f24ac?format=amis", "api" : { "method" : "get", "url" : "/api/form/BUNDLE_BUNDLELIST/defaults?templateId=01d0f471-0e6d-490a-8ffb-0426c69f24ac" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/SYS_BUNDLE_BUNDLELIST_ADD?__egtpl=01d0f471-0e6d-490a-8ffb-0426c69f24ac", "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/01d0f471-0e6d-490a-8ffb-0426c69f24ac?format=amis", "api" : { "method" : "post", "url" : "/api/flow/SYS_BUNDLE_BUNDLELIST_LOAD?__egtpl=01d0f471-0e6d-490a-8ffb-0426c69f24ac", "data" : { "BUNDLE_BUNDLELIST_ID" : "${BUNDLE_BUNDLELIST_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/SYS_BUNDLE_BUNDLELIST_UPDATE?__egtpl=01d0f471-0e6d-490a-8ffb-0426c69f24ac", "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/SYS_BUNDLE_BUNDLELIST_DELETE", "data" : { "ids" : "${selectedItems|pick:BUNDLE_BUNDLELIST_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/01d0f471-0e6d-490a-8ffb-0426c69f24ac?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/SYS_BUNDLE_BUNDLELIST_LOAD?__egtpl=01d0f471-0e6d-490a-8ffb-0426c69f24ac", "data" : { "BUNDLE_BUNDLELIST_ID" : "${BUNDLE_BUNDLELIST_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "BUNDLE_BUNDLELIST_ID" } }