{ "type" : "page", "title" : "移动应用管理", "body" : { "type" : "crud", "api" : "/api/flow/APP_STORES_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "CODE", "label" : "应用标识", "type" : "input-text" }, { "name" : "APPVERSION", "label" : "应用版本", "type" : "input-number", "precision" : 0, "step" : 1 }, { "name" : "NAME", "label" : "应用名称", "type" : "input-text" }, { "name" : "DESCRIPTION", "label" : "应用描述", "type" : "input-text" }, { "name" : "FILES", "label" : "应用安装包", "type" : "select", "multiple" : true, "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "SEQ", "label" : "序号", "type" : "input-number", "precision" : 0, "step" : 1 } ] }, "columns" : [ { "name" : "APP_STORES_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "CODE", "label" : "应用标识", "width" : 200 }, { "name" : "APPVERSION", "label" : "应用版本", "width" : 200 }, { "name" : "NAME", "label" : "应用名称", "width" : 200 }, { "name" : "DESCRIPTION", "label" : "应用描述", "width" : 200 }, { "name" : "SEQ", "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/f5ba3917-25eb-436b-84b5-c01ab8d46fd2?format=amis", "api" : { "method" : "get", "url" : "/api/form/APP_STORES/defaults?templateId=f5ba3917-25eb-436b-84b5-c01ab8d46fd2" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/APP_STORES_ADD?__egtpl=f5ba3917-25eb-436b-84b5-c01ab8d46fd2", "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/f5ba3917-25eb-436b-84b5-c01ab8d46fd2?format=amis", "api" : { "method" : "post", "url" : "/api/flow/APP_STORES_LOAD?__egtpl=f5ba3917-25eb-436b-84b5-c01ab8d46fd2", "data" : { "APP_STORES_ID" : "${APP_STORES_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/APP_STORES_UPDATE?__egtpl=f5ba3917-25eb-436b-84b5-c01ab8d46fd2", "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/APP_STORES_DELETE", "data" : { "ids" : "${selectedItems|pick:APP_STORES_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/f5ba3917-25eb-436b-84b5-c01ab8d46fd2?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/APP_STORES_LOAD?__egtpl=f5ba3917-25eb-436b-84b5-c01ab8d46fd2", "data" : { "APP_STORES_ID" : "${APP_STORES_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "APP_STORES_ID" } }