{ "type" : "page", "title" : "CA锁登记", "body" : { "type" : "crud", "api" : "/api/flow/PM_CALOCK_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "CANAME", "label" : "CA锁名称", "type" : "input-text" }, { "name" : "REGIONAL", "label" : "所属投标地区", "type" : "input-text" }, { "name" : "VALIDDATE", "label" : "到期日期", "type" : "input-date-range" }, { "name" : "ISUSE", "label" : "是否在使用中", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" } ] }, "columns" : [ { "name" : "PM_CALOCK_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "CANAME", "label" : "CA锁名称", "width" : 200 }, { "name" : "REGIONAL", "label" : "所属投标地区", "width" : 300 }, { "name" : "REGISEDATE", "label" : "注册日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "VALIDDATE", "label" : "到期日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "REMARK", "label" : "备注", "width" : 500 }, { "name" : "ISUSE", "label" : "是否在使用中", "width" : 100, "type" : "mapping", "map" : { "0" : "否", "1" : "是" } } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/04247aac-3ba2-4f34-a934-8d1d50ae440d?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_CALOCK/defaults?templateId=04247aac-3ba2-4f34-a934-8d1d50ae440d" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CALOCK_ADD?__egtpl=04247aac-3ba2-4f34-a934-8d1d50ae440d", "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/04247aac-3ba2-4f34-a934-8d1d50ae440d?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_CALOCK_LOAD?__egtpl=04247aac-3ba2-4f34-a934-8d1d50ae440d", "data" : { "PM_CALOCK_ID" : "${PM_CALOCK_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_CALOCK_UPDATE?__egtpl=04247aac-3ba2-4f34-a934-8d1d50ae440d", "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/PM_CALOCK_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_CALOCK_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/04247aac-3ba2-4f34-a934-8d1d50ae440d?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_CALOCK_LOAD?__egtpl=04247aac-3ba2-4f34-a934-8d1d50ae440d", "data" : { "PM_CALOCK_ID" : "${PM_CALOCK_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "PM_CALOCK_ID" } }