{ "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/3a5efa11-2b6b-43d8-aceb-c4e34f3b06e7/tree" } }, { "md" : 9, "body" : { "type" : "crud", "id" : "treegrid_crud", "syncLocation" : false, "api" : "/api/template/treegrid?treeRef=3a5efa11-2b6b-43d8-aceb-c4e34f3b06e7&gridTable=PM_DATUMPICTURE&rcol=FOLDERID&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/c0960cee-b531-44e7-9f27-23eeac86e308?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_DATUMPICTURE/defaults?templateId=c0960cee-b531-44e7-9f27-23eeac86e308" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_DATUMPICTURE_ADD?__egtpl=c0960cee-b531-44e7-9f27-23eeac86e308", "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/c0960cee-b531-44e7-9f27-23eeac86e308?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_DATUMPICTURE_UPDATE_LOAD?__egtpl=c0960cee-b531-44e7-9f27-23eeac86e308", "data" : { "PM_DATUMPICTURE_ID" : "${PM_DATUMPICTURE_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_DATUMPICTURE_UPDATE?__egtpl=c0960cee-b531-44e7-9f27-23eeac86e308", "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_DATUMPICTURE_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_DATUMPICTURE_ID|join:','}" } } }, "pagination" ], "primaryField" : "PM_DATUMPICTURE_ID", "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTID", "label" : "工程名称", "type" : "picker", "clearable" : true, "source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "value" : "${currentProject}" }, { "name" : "PICTURENAME", "label" : "图片名称", "type" : "input-text" }, { "name" : "SHOOTPART", "label" : "拍摄部位", "type" : "input-text" }, { "name" : "SHOOTCONTENT", "label" : "拍摄内容", "type" : "input-text" }, { "name" : "SHOOTER", "label" : "拍摄人", "type" : "input-text" }, { "name" : "SHOOTDATE", "label" : "拍摄日期", "type" : "input-date-range" }, { "name" : "CREATETIME", "label" : "插入时间", "type" : "input-date-range" }, { "name" : "ISIMPORT", "label" : "图片级别", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_isImport" } ] }, "columns" : [ { "name" : "PM_DATUMPICTURE_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "LOOKLINK", "label" : "查看", "width" : 40 }, { "name" : "ISIMPORT", "label" : "图片级别", "width" : 100, "type" : "mapping", "map" : { "1" : "上传", "0" : "不上传" }, "toggled" : false }, { "name" : "PICTURENAME", "label" : "图片名称", "width" : 200 }, { "name" : "SHOOTPART", "label" : "拍摄部位", "width" : 200 }, { "name" : "SHOOTCONTENT", "label" : "拍摄内容", "width" : 200 }, { "name" : "SHOOTER", "label" : "拍摄人", "width" : 100 }, { "name" : "SHOOTDATE", "label" : "拍摄日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "CREATETIME", "label" : "插入时间", "width" : 60, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "PICTUREPOSTFIX", "label" : "图片类型", "width" : 200, "toggled" : false }, { "name" : "PICTUREPATH", "label" : "图片地址", "width" : 200, "toggled" : false }, { "name" : "PICTURETHUMBNAILPATH", "label" : "图片缩略图地址", "width" : 200, "toggled" : false }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 200, "toggled" : false }, { "name" : "FOLDERID_DISPLAY__", "label" : "所属目录", "width" : 200, "toggled" : false }, { "name" : "PICTUREID", "label" : "序号", "width" : 200, "toggled" : false }, { "name" : "PROJECTTASKID_DISPLAY__", "label" : "关联任务", "width" : 100 } ] } } ] } }